/* ---------------------- Global Styles ---------------------- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0f0f15;
    color: #eee;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

body.light-theme {
    background-color: #f5f5f5;
    color: #222;
}

/* ---------------------- Top Left Navigation ---------------------- */
.top-left-nav {
    position: fixed;
    top: 25px;
    left: 25px;
    display: flex;
    gap: 20px;
    z-index: 999;
}

.top-left-nav .small-btn {
    background: linear-gradient(135deg, #50e3c2, #ff6ec7);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(80,227,194,0.6);
    cursor: pointer;
}

.top-left-nav .small-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(255,110,199,0.9);
}

/* Theme toggle button */
#theme-toggle {
    cursor: pointer;
    border: none;
}

/* ---------------------- Floating Dots Background ---------------------- */
.floating-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.floating-dots span {
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    background: rgba(80,227,194,0.7);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 1; }
    50% { transform: translateY(-600px) translateX(50px); opacity: 0.6; }
    100% { transform: translateY(-1200px) translateX(0); opacity: 0; }
}

/* ---------------------- Header / Landing Hero ---------------------- */
.header {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0d0d12, #1a1a28);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: center;
}

body.light-theme .header {
    background: #f5f5f5;
    color: #222;
}

.header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(270deg, #50e3c2, #ff6ec7, #50e3c2);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header .tagline {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #aaa;
    animation: pulse 2.5s ease-in-out infinite;
}

body.light-theme .header .tagline {
    color: #555;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ---------------------- Buttons ---------------------- */
.btn {
    text-decoration: none;
    background: linear-gradient(135deg, #50e3c2, #ff6ec7);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    margin: 0 10px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 0 12px rgba(80,227,194,0.5);
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255,110,199,0.8);
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
}

/* ---------------------- Forms (Login/Register) ---------------------- */
.form-container {
    max-width: 450px;
    margin: 120px auto 50px;
    background-color: #1a1a28;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(80,227,194,0.3);
}

body.light-theme .form-container {
    background-color: #fff;
    color: #222;
}

.form-container input,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #11111a;
    color: #eee;
    font-size: 1rem;
    resize: none;
}

body.light-theme .form-container input,
body.light-theme textarea {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #222;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password,
.password-wrapper .toggle-confirm-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* ---------------------- Features Section ---------------------- */
.features {
    padding: 70px 20px;
    background: #11111a;
}

body.light-theme .features {
    background: #eee;
    color: #222;
}

.features h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #50e3c2;
}

body.light-theme .features h2 {
    color: #00a891;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1 1 260px;
    min-width: 200px;
    max-width: 320px;
    background: #1a1a28;
    padding: 30px;
    border-radius: 16px;
    transition: 0.3s;
    box-shadow: 0 0 14px rgba(80,227,194,0.25);
}

body.light-theme .feature-card {
    background: #fff;
    color: #222;
    box-shadow: 0 0 14px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 26px rgba(255,110,199,0.6);
}

.feature-icon {
    font-size: 3.2rem;
    margin-bottom: 12px;
}

/* ---------------------- Offer Section ---------------------- */
.what-we-offer {
    padding: 70px 20px;
    background-color: #0f0f15;
}

body.light-theme .what-we-offer {
    background: #f9f9f9;
    color: #222;
}

.offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.offer-card {
    background-color: #1a1a28;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(80,227,194,0.3);
    transition: 0.3s;
    text-align: center;
}

body.light-theme .offer-card {
    background-color: #fff;
    color: #222;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.offer-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 28px rgba(255,110,199,0.7);
}

.offer-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* ---------------------- CTA Section ---------------------- */
.cta {
    padding: 60px 20px;
    background: #11111a;
}

body.light-theme .cta {
    background: #eee;
    color: #222;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #50e3c2;
}

body.light-theme .cta h2 {
    color: #00a891;
}

/* ---------------------- Dashboard & Admin ---------------------- */
.dashboard-container {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin: auto;
}

.dashboard-section h2 {
    font-size: 2rem;
    color: #50e3c2;
    margin-bottom: 25px;
    text-align: left;
}

body.light-theme .dashboard-section h2 {
    color: #00a891;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background-color: #1a1a28;
    padding: 30px;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(80,227,194,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
}

body.light-theme .dashboard-card {
    background-color: #fff;
    color: #222;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 28px rgba(255,110,199,0.6);
}

.messages-container {
    background-color: #1a1a28;
    padding: 25px;
    border-radius: 20px;
    min-height: 180px;
    box-shadow: 0 0 18px rgba(80,227,194,0.3);
    overflow-y: auto;
}

body.light-theme .messages-container {
    background-color: #fff;
    color: #222;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.messages-container textarea {
    width: 100%;
    height: 140px;
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    background-color: #11111a;
    color: #eee;
    font-size: 1rem;
}

body.light-theme .messages-container textarea {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    color: #222;
}

.messages-container button {
    margin-top: 15px;
    width: 100%;
    font-weight: bold;
}

.placeholder {
    color: #ccc;
    font-style: italic;
}

body.light-theme .placeholder {
    color: #555;
}

/* ---------------------- Footer ---------------------- */
.footer {
    background: #0a0a0c;
    padding: 45px 20px;
    color: white;
    margin-top: 70px;
}

body.light-theme .footer {
    background: #ddd;
    color: #222;
}

.social-icons a {
    margin: 0 12px;
    font-size: 2rem;
    color: #50e3c2;
    transition: 0.3s;
}

body.light-theme .social-icons a {
    color: #00a891;
}

.social-icons a:hover {
    color: #ff6ec7;
    transform: scale(1.3) rotate(4deg);
}

/* ---------------------- Responsive ---------------------- */
@media (max-width: 1024px) {
    .feature-cards, .offer-cards {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr 1fr;
    }
    .top-left-nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* ---------------------- Mobile Improvements ---------------------- */
@media (max-width: 500px) {
    /* Stack top nav buttons vertically and shrink */
    .top-left-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        top: 15px;
        left: 15px;
    }
    .top-left-nav .small-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    #theme-toggle {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* Header adjustments */
    .header {
        padding-top: 80px;
    }
    .header h1 {
        font-size: 2.2rem;
    }
    .header .tagline {
        font-size: 1rem;
    }

    /* Feature and offer cards scale */
    .feature-card, .offer-card {
        width: 90%;
    }

    /* Dashboard cards one per row */
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
