﻿/* ===== VARAD UI GLOBAL STYLES (Layout only) ===== */
:root {
    --primary: #28a745;
    --primary-dark: #1e7e34;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-dark: #1a1a1a;
    --menu-text: #7b2b21;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 18px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.18);
    --radius-pill: 60px;
    --radius-card: 24px;
    --transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #eef2ff);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== HEADER (Glass) ===== */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

/* Make the header-content a flex row that can wrap on very small screens */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* keeps logo left, pushes nav and userPanel */
    flex-wrap: wrap;                 /* allows nav to wrap under on mobile */
    gap: 15px;
}
 


.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--menu-text);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

    .logo span {
        color: var(--primary);
    }

/* Center container for navigation */
.nav-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
}

.nav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
}

    .nav-wrapper::-webkit-scrollbar {
        display: none;
    }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 4px 0;
    width: max-content;
}

    .nav a {
        text-decoration: none;
        color: var(--menu-text);
        font-weight: 600;
        padding: 8px 12px;
        border-radius: var(--radius-pill);
        transition: var(--transition);
        position: relative;
        white-space: nowrap;
        font-size: 0.9rem;
    }

        .nav a::after {
            content: '';
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: 4px;
            height: 2px;
            background: var(--primary);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .nav a:hover {
            background: rgba(255, 255, 255, 0.75);
            color: var(--primary);
            transform: translateY(-2px);
        }

            .nav a:hover::after {
                transform: scaleX(1);
            }

/* Login icon */
.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    color: var(--menu-text);
    font-size: 20px;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

    .login-icon:hover {
        transform: translateY(-3px) scale(1.1);
        background: white;
        color: var(--primary);
        box-shadow: var(--shadow-medium);
    }

/* Dropdown (for navigation submenus) */
.nav li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px 0;
    list-style: none;
    min-width: 220px;
    border: 1px solid #ddd;
    z-index: 99999;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 6px 15px;
}

    .dropdown-menu li a {
        display: block;
        color: #333;
        text-decoration: none;
    }

        .dropdown-menu li a:hover {
            background: #f5f5f5;
        }

/* ===== MAIN CONTENT ===== */
.main {
    flex: 1;
    padding: 40px 0;
}
 

/* ===== FOOTER (Glass) ===== */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 16px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 15px;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    flex: 1 1 0;
}

.footer-left {
    justify-content: flex-start;
}

.footer-center {
    justify-content: center;
}

.footer-right {
    justify-content: flex-end;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    color: var(--menu-text);
    font-size: 20px;
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

    .social-icon:hover {
        transform: translateY(-3px) scale(1.1);
        background: white;
        color: var(--primary);
        box-shadow: var(--shadow-medium);
    }

.copyright {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

    .footer-links a {
        text-decoration: none;
        color: var(--menu-text);
        font-weight: 500;
        transition: var(--transition);
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

/* ===== RESPONSIVE BREAKPOINTS (Layout only) ===== */
@media (min-width: 601px) and (max-width: 900px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .login-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .footer-content {
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .copyright {
        font-size: 0.85rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-center {
        flex: 0 0 100%;
        order: 3;
        justify-content: flex-end;
        overflow: visible;
    }

    .nav-wrapper {
        max-width: 100%;
        overflow-x: auto;
    }

    .nav {
        margin-left: auto;
        width: max-content;
        gap: 6px;
    }

    .logo {
        order: 1;
        flex: 1 0 auto;
        font-size: 1.1rem;
    }

    .login-icon {
        order: 2;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .nav a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .footer-content {
        gap: 8px;
    }

    .footer-links {
        gap: 6px;
    }

        .footer-links a {
            font-size: 0.8rem;
        }

    .copyright {
        font-size: 0.8rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1rem;
    }

    .nav a {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .login-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .footer-links a {
        font-size: 0.7rem;
    }

    .copyright {
        font-size: 0.7rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 430px) {
    .logo {
        font-size: 0.9rem;
    }

    .nav {
        gap: 2px;
    }

        .nav a {
            padding: 4px 5px;
            font-size: 0.65rem;
        }

    .login-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .footer-links a {
        font-size: 0.6rem;
        gap: 3px;
    }

    .copyright {
        font-size: 0.6rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 0.8rem;
    }

    .nav {
        gap: 1px;
    }

        .nav a {
            padding: 3px 4px;
            font-size: 0.55rem;
        }

    .login-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .footer-links a {
        font-size: 0.5rem;
        gap: 2px;
    }

    .copyright {
        font-size: 0.5rem;
    }

    .social-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (min-width: 1800px) {
    body {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    #userPanel .username {
        font-size: 0.8rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #userPanel {
        margin-left: auto;
        order: 1;
    }
}


/* Responsive: on small screens, keep userPanel on the right, let nav wrap */
@media (max-width: 768px) {
     
   

    #userPanel {
        margin-left: auto; /* stays right */
        padding: 4px 12px;
    }
}
