/* PLATEC Portal Modern Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #022c22 0%, #059669 50%, #10b981 100%);
    --accent-gradient: linear-gradient(135deg, #059669 0%, #c5a85c 100%);
    --gold-gradient: linear-gradient(135deg, #c5a85c 0%, #eab308 100%);
    --bg-gradient: radial-gradient(circle at 50% 0%, rgba(4, 120, 87, 0.05) 0%, rgba(15, 23, 42, 0.01) 80%);
    --platec-purple: #022c22; /* Obsidian Dark Green */
    --platec-blue: #059669;   /* Fortune 500 Emerald */
    --platec-orange: #c5a85c; /* Luxury Gold */
    --platec-lime: #10b981;   /* Electric Teal */
    --platec-dark: #090d16;   /* Obsidian Night */
    --platec-light: #fafbfc;  /* Crisp Off-White */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(5, 150, 105, 0.08);
    --glass-shadow: 0 10px 40px -10px rgba(2, 44, 34, 0.05);
}

body {
    font-family: var(--font-body);
    background-color: var(--platec-light);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: #334155;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--platec-dark);
}

/* Global Grid Overlay Pattern */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(5, 150, 105, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphism Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 20px 50px -12px rgba(2, 44, 34, 0.1);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.06);
    transition: all 0.3s ease;
}

/* Premium Gradients & Headings */
.text-gradient {
    background: linear-gradient(135deg, #022c22 0%, #059669 40%, #c5a85c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-premium-gradient {
    background: var(--primary-gradient);
}

.bg-accent-gradient {
    background: var(--accent-gradient);
}

/* Buttons */
.btn-premium {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn-premium:hover::after {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.3);
    opacity: 0.95;
}

.btn-accent {
    background: var(--accent-gradient);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(197, 168, 92, 0.15);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 168, 92, 0.3);
    opacity: 0.95;
}

/* Stats Styling */
.stat-box {
    border-left: 2px solid rgba(5, 150, 105, 0.15);
    padding-left: 20px;
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--platec-purple);
    background: linear-gradient(135deg, #022c22 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Members/Admin Sidebars */
.dashboard-sidebar {
    background: var(--platec-dark);
    min-height: 100vh;
    color: white;
}

.sidebar-link {
    color: #64748b !important; /* Muted Slate */
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    margin-bottom: 6px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(5, 150, 105, 0.05) !important;
    color: var(--platec-blue) !important;
    border-left: 3px solid var(--platec-blue);
}

.sidebar-link.active {
    background: var(--primary-gradient) !important;
    color: white !important;
    font-weight: 600;
    border-left: 3px solid var(--platec-orange);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.15);
}

.active-link {
    color: var(--platec-blue) !important;
    border-bottom: 2px solid var(--platec-blue);
}

/* Navigation Overrides */
.glass-nav .nav-link {
    color: #475569 !important;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    padding: 6px 12px;
}

.glass-nav .nav-link:hover {
    color: var(--platec-blue) !important;
}

.glass-nav .nav-link.active-link {
    color: var(--platec-blue) !important;
    border-bottom: 2px solid var(--platec-blue) !important;
}

.glass-nav .text-primary {
    color: var(--platec-blue) !important;
}

.glass-nav .text-primary:hover {
    color: var(--platec-orange) !important;
}

/* Footer layout details */
footer {
    background: #090d16 !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

footer a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--platec-orange) !important;
}

footer .text-muted, footer p, footer div, footer span, footer li {
    color: #94a3b8 !important; /* Force visible light gray */
}
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    margin: 0;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 10000;
    min-width: 300px;
    max-width: 450px;
    background: var(--platec-dark);
    
    /* Discrete transition behaviors for popover entrance */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
    opacity: 0;
    transform: translateY(30px);
}

/* When the popover is showing */
.toast-notification:popover-open {
    opacity: 1;
    transform: translateY(0);
}

/* Entry/Exit styles */
@starting-style {
    .toast-notification:popover-open {
        opacity: 0;
        transform: translateY(30px);
    }
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-left: 5px solid #047857;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-left: 5px solid #b91c1c;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: white;
}

/* Badge System */
.badge-custom {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-verified {
    background-color: rgba(4, 120, 87, 0.1);
    color: var(--platec-blue);
    border: 1px solid rgba(4, 120, 87, 0.2);
}

.badge-days {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--platec-orange);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-admin {
    background-color: rgba(6, 78, 59, 0.1);
    color: var(--platec-purple);
    border: 1px solid rgba(6, 78, 59, 0.2);
}

/* Footer specific override cleanup */

/* Infinite Scroll Marquee */
.marquee-container {
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
    position: relative;
}

/* Gradient fades on the edges of the marquee */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-content {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(4, 120, 87, 0.08);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
    transition: all 0.3s ease;
}

.marquee-item:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: var(--platec-orange);
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.08);
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
