* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   THEME VARIABLES
   ============================================================ */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-navbar: #222222;
    --bg-footer: #1a1a1a;
    --bg-card: #ffffff;

    --text-primary: #222222;
    --text-secondary: #555555;
    --text-inverse: #ffffff;
    --text-muted: #888888;

    --accent: #ff9900;
    --accent-hover: #e68a00;

    --border-color: #e0e0e0;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-navbar: #0f0f0f;
    --bg-footer: #0a0a0a;
    --bg-card: #1e1e1e;

    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-inverse: #ffffff;
    --text-muted: #888888;

    --accent: #ff9900;
    --accent-hover: #ffad33;

    --border-color: #2a2a2a;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.menu-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.main-menu {
    background: #222;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.main-menu .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo img {
    height: 40px;
    display: block;
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}

.menu-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ff9900;
    transition: width 0.3s;
}

.menu-links a:hover {
    color: #ff9900;
}

.menu-links a:hover::after {
    width: 100%;
}
.menu-auth {
    display: flex;
    align-items: center;
    gap: 10px;

}

.menu-auth a {
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid #ff9900;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.menu-auth a:hover {
    background: #ff9900;
    color: #222;
}

/* Hidden by default on desktop */
.mobile-auth,
.mobile-toggle-item {
    display: none;
}

/* Burger button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 998;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin: 15px auto;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #43a047;
}

.alert-error {
    background: #fdecea;
    color: #b71c1c;
    border-left: 4px solid #e53935;
}

/* Optional: add some side margin on desktop */
@media (min-width: 1200px) {
    .alert { max-width: 1160px; }
}


/* ============================================================
   FLASH MESSAGES (toasts, top-right)
   ============================================================ */
.alert {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1050;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    font-family: 'Segoe UI', Arial, sans-serif;

    max-width: 320px;
    min-width: 220px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

    /* Slide-in animation */
    animation: toastIn 0.35s ease forwards;
}

/* Slide out (add this class via JS if you want auto-hide) */
.alert.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(120%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* Icon via pseudo-element */
.alert::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
}

/* Success */
.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #43a047;
}
.alert-success::before {
    content: '\f058';           /* check-circle */
    color: #43a047;
}

/* Error */
.alert-error {
    background: #fdecea;
    color: #b71c1c;
    border-left: 4px solid #e53935;
}
.alert-error::before {
    content: '\f06a';           /* exclamation-circle */
    color: #e53935;
}

/* Dark mode */
[data-theme="dark"] .alert-success {
    background: #1b3a1e;
    color: #a5d6a7;
    border-left-color: #43a047;
}
[data-theme="dark"] .alert-error {
    background: #3a1b1b;
    color: #ef9a9a;
    border-left-color: #e53935;
}

/* Mobile — full width at top */
@media (max-width: 600px) {
    .alert {
        top: 80px;
        right: 12px;
        left: 12px;
        max-width: none;
        min-width: 0;
    }
}

/* ============================================================
   THEME TOGGLE (base = desktop circular button)
   ============================================================ */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #222;
    transform: rotate(20deg);
}

.theme-toggle i {
    font-size: 16px;
    position: absolute;
    transition: transform 0.4s, opacity 0.3s;
}

.theme-toggle .icon-sun  { opacity: 0; transform: translateY(-20px); }
.theme-toggle .icon-moon { opacity: 1; transform: translateY(0); }

[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: translateY(20px); }
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: translateY(0); }

/* ============================================================
   TABLET & MOBILE
   ============================================================ */
@media (max-width: 991px) {

    /* Hide desktop auth + desktop toggle */
    .menu-auth,
    .theme-toggle-desktop {
        display: none;
    }

    /* Push actions to the right */
    .menu-actions {
        margin-left: auto;
        gap: 12px;
    }

    /* Show burger */
    .burger {
        display: flex;
    }

    /* Drawer */
    .menu-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #1c1c1c;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        padding: 90px 25px 30px;
        transition: right 0.35s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
        z-index: 999;
        overflow-y: auto;
    }

    .menu-links.active {
        right: 0;
    }

    .menu-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .menu-links a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        width: 100%;
    }

    .menu-links a::after {
        display: none;
    }

    /* ---------- THEME TOGGLE INSIDE DRAWER ---------- */
    .mobile-toggle-item {
        display: block;
        padding: 15px 0;
        border-bottom: none;
    }

    .theme-toggle-mobile {
        display: flex;
        width: 100%;
        height: auto;
        border-radius: 8px;
        padding: 12px 18px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        justify-content: center;
        gap: 12px;
        color: #fff;
        font-size: 14px;
        transform: none;
    }

    .theme-toggle-mobile i {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        font-size: 16px;
    }

    .theme-toggle-mobile .icon-sun  { display: none; }
    .theme-toggle-mobile .icon-moon { display: inline-block; }

    [data-theme="dark"] .theme-toggle-mobile .icon-sun  { display: inline-block; }
    [data-theme="dark"] .theme-toggle-mobile .icon-moon { display: none; }

    .theme-toggle-mobile:hover {
        background: var(--accent);
        color: #222;
        transform: none;
    }

    .toggle-label {
        font-size: 14px;
        font-weight: 500;
    }

    /* Mobile auth inside drawer */
    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
        border-bottom: none;
    }

    .mobile-auth a {
        display: inline-block;
        padding: 10px 18px;
        text-align: center;
        border: 1px solid #ff9900;
        border-radius: 6px;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s;
    }

    .mobile-auth a:hover {
        background: #ff9900;
        color: #222;
    }
}

@media (max-width: 480px) {
    .menu-links {
        width: 85%;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: #1a1a1a;
    color: #ccc;
    padding-top: 50px;
    margin-top: 60px;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 15px;
}

.footer-para {
    font-size: 14px;
    line-height: 1.7;
    color: #aaa;
    margin-bottom: 20px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #aaa;
}

.footer-contact i {
    color: #ff9900;
    margin-top: 3px;
    min-width: 16px;
}

.footer-contact a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #ff9900;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #ff9900;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #ff9900;
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    background: #111;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 34px;
    height: 34px;
    background: #2a2a2a;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.social-links a:hover {
    background: #ff9900;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}








