/* ---------------- BODY & BACKGROUND ---------------- */
/* ---------------- BASE BODY ---------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-size: cover !important;
    background-position: center center !important;
}

/* ---------------- INPUTS ---------------- */
input,
select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #A5D6A7;
    font-size: 16px !important;
    background-color: rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
}

input::placeholder {
    color: #888;
}

/* ---------------- TOP NAVBAR ---------------- */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgb(24,191,24);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 9999;
    
}

.top-navbar a {
    text-decoration: none;
    color: white;
    font-weight: 900;
    margin-right: 30px;
    font-size: 20px;
}

/* ---------------- LANGUAGE SELECT ---------------- */
#language {
    background: #fff;
    color: #000;
    border: 1px solid #A5D6A7;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1em;
    width: 160px;
}

/* ---------------- BUBBLES ---------------- */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bubbles span {
    position: absolute;
    bottom: -50px;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: rise 10s linear infinite;
}
.bubbles span:nth-child(1) { left: 10%; width: 10px; height: 10px; animation-duration: 8s; }
.bubbles span:nth-child(2) { left: 25%; width: 15px; height: 15px; animation-duration: 12s; animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 40%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: 1s; }
.bubbles span:nth-child(4) { left: 60%; width: 18px; height: 18px; animation-duration: 14s; animation-delay: 3s; }
.bubbles span:nth-child(5) { left: 75%; width: 14px; height: 14px; animation-duration: 11s; animation-delay: 0s; }
.bubbles span:nth-child(6) { left: 90%; width: 10px; height: 10px; animation-duration: 9s; animation-delay: 2s; }

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { transform: translateY(-110vh) scale(1.3); opacity: 0; }
}


/* ---------------- CONTAINER ---------------- */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 25px 20px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(2px);
    border-radius: 15px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    text-align: center;
    margin: 120px auto 40px auto;
}

.container h1 {
    color: #2E7D32;
    margin-bottom: 25px;
}

/* ---------------- BUTTON ---------------- */
button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #2E7D32;
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background: #1B5E20;
}

/* ---------------- RESULT ---------------- */
#result {
    display: none;
    background: rgba(241, 248, 233, 0.582);
    color: #000;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 15px;
    max-height: 260px;
    overflow-y: auto;
}

/* ---------------- MOBILE NAVIGATION ---------------- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100%;
    background: #2E7D32;
    display: flex;
    flex-direction: column;
    padding: 70px 20px;
    transition: left 0.3s ease;
    z-index: 2000;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 0;
    font-size: 18px;
}

.mobile-nav form {
    margin-top: 15px;
}

.mobile-nav select {
    padding: 8px;
    border-radius: 6px;
}

.mobile-nav.active {
    left: 0;
}

/* ---------------- HAMBURGER ---------------- */
.hamburger {
    display: none; /* hidden on desktop */
    position: fixed;
    top: 15px;
    right: 20px; /* better UX on right side */
    z-index: 2001; /* above mobile nav */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 25px;
}

.hamburger div {
    width: 28px;
    height: 4px;
    background: white; /* always visible */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
    .top-navbar {
        display: none; /* hide desktop navbar */
    }

    .hamburger {
        display: flex; /* show hamburger */
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 2001;
        cursor: pointer;
        flex-direction: column;
        justify-content: space-between;
        height: 30px;
    }
}

.hamburger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open div:nth-child(2) {
    opacity: 0;
}
.hamburger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-nav.active {
    left: 0;
    z-index: 2000; /* above everything */
}
/* Fix input boxes alignment */

.container input { width: 90% !important; margin: 10px auto !important; display: block !important; text-align: left; }

   

/* LIGHT MODE (default) */
body.light-mode {
    background: url("ChatGPT Image Feb 14, 2026, 11_09_30 PM.png") no-repeat center center fixed !important;
    background-size: cover !important;
    color: #000;
}
   
/* 🌙 DARK MODE */
body.dark-mode {
    /* Keep the same light background image */
    background: url("ChatGPT Image Mar 29, 2026, 12_58_22 AM.png") no-repeat center center fixed !important;
    background-size: cover !important;

    /* Add a dark overlay using linear-gradient */
    position: relative;
    color: #fff;

}

/* DARK MODE: Light Blur Inputs & Containers */
.dark-mode .container,
.dark-mode .dashboard,
.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background: rgba(255, 255, 255, 0.25); /* light frosted overlay */
    backdrop-filter: blur(3px);           /* soft blur */
    -webkit-backdrop-filter: blur(3px);   /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.773);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.dark-mode .result-box {
    background-color: #d3d3d3;  /* light grey */
    border-radius: 10px;
    padding: 15px;
    color: #000;               /* dark text for readability */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);  /* optional soft shadow */
}

/* Placeholder text */
.dark-mode input::placeholder,
.dark-mode textarea::placeholder,
.dark-mode select {
    color: rgba(255, 255, 255, 0.7);
}

/* Remove any solid dark backgrounds that override blur */
.dark-mode input,
.dark-mode select,
.dark-mode textarea,
.dark-mode .container,
.dark-mode .dashboard {
    background-color: transparent !important;
}

/* Ensure all inner elements inherit this background and text color */
.dark-mode .result-box * {
    background-color: inherit !important;
    color: inherit !important;
}

/* FINAL THEME BUTTON (correct) */
.top-bar {
    display: flex;
    justify-content: space-between;  /* places left & right */
    align-items: center;             /* vertical alignment */
    width: 100%;
    margin-bottom: 10px;
}
.theme-btn {
    background: white;
    color: green;
    border: 2px solid white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
}
.theme-btn:hover {
    background: rgb(216, 255, 216);
}
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-navbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 38px;
}
.top-navbar a {
    margin-right: 10px !important;
}
/* Keep navbar text on one line */
.top-navbar a {
    white-space: nowrap;
}

/* Left side spacing (Home, How It Works, Theme Button) */
.top-navbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Right side spacing (Language, Welcome, Dashboard, Logout) */
.top-navbar > div:last-child {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-right: 40px;
}

/* ---------------- DASHBOARD ---------------- */
.dashboard {
    background: rgba(31, 31, 31, 0.95);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Dashboard inputs */
.dark-mode .dashboard input,
.dark-mode .dashboard select,
.dark-mode .dashboard textarea {
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #555;
}

/* Dashboard headings */
.dark-mode .dashboard h1,
.dark-mode .dashboard h2,
.dark-mode .dashboard h3 {
    color: #fff;
}

/* Dashboard links/buttons */
.dark-mode .dashboard a,
.dark-mode .dashboard button {
    color: #fff;
    background: #2E7D32;
    border: none;
}

.dark-mode .dashboard button:hover {
    background: #1B5E20;
}

#aboutSection {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    border-radius: 12px;
    background: rgb(245, 245, 245);
    color:black;
}

.dark-mode #aboutSection {
    background: rgba(241, 248, 233, 0.633) !important;
    color: black !important;
}



/* Default (light mode) */
#notLoggedIn a {
    color: black;
    text-decoration: none;
}

#notLoggedIn a:hover {
    color: #555; /* optional: darker on hover */
}

/* Dark mode overrides */
body.dark-mode #notLoggedIn a {
    color: rgba(255, 255, 255, 0.632);
}

body.dark-mode #notLoggedIn a:hover {
    color: #ccc; /* optional: lighter on hover */
}
 
/* Make hamburger visible in light mode */
body.light-mode .hamburger div {
    background: #2E7D32; /* Dark green */
}

/* Make hamburger white in dark mode */
body.dark-mode .hamburger div {
    background: white;
}

/* MOBILE THEME BUTTON FIX */
.mobile-nav .theme-btn {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background: white;
    color: green;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    border: none;
}
body.dark-mode .mobile-nav .theme-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.6);
}
.mobile-nav {
    overflow-y: auto;
}
.mobile-nav {
    padding: 80px 20px 40px 20px !important;
}
.mobile-nav {
    background: rgba(46, 125, 50, 0.95) !important;
}
.mobile-nav a {
    color: #fffffff4 !important;
    font-weight: 600;
}
.mobile-nav .theme-btn {
    display: block !important;
}
body.dark-mode .mobile-nav {
    background: rgba(0, 0, 0, 0.65) !important;
}

/* ---------------- FORCE HAMBURGER ON MOBILE ---------------- */
@media (max-width: 768px) {
    .top-navbar {
        display: none !important; /* hide desktop navbar */
    }
    .hamburger {
        display: flex !important; /* show hamburger */
    }
    .mobile-nav {
        left: -100%; /* hide menu by default */
    }
    .mobile-nav.active {
        left: 0; /* show menu when active */
    }
}
/* Light mode hamburger bars */
body.light-mode .hamburger div {
    background: #2E7D32; /* green for light mode */
}

/* Dark mode hamburger bars */
body.dark-mode .hamburger div {
    background: white;
}

/* Make ONLY 'How it Works' white in light mode */
body.light-mode a.how-it-works {
    color: rgba(255, 255, 255, 0.434) !important;
}




html, body {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

input,
select,
button,
a {
    font-size: 16px;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}