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

:root {
    --bg-color: #f8f9fa;
    --bg-accent: #eef4f0;
    --surface-color: #ffffff;
    --panel-color: #f1f4f2;
    --nav-surface: rgba(255, 255, 255, 0.78);
    --text-color: #1e2a24;
    --muted-color: #66756d;
    --border-color: #d9e2dd;
    --shadow-color: rgba(16, 24, 40, 0.08);
    --brand-color: #2d6a4f;
    --brand-strong: #235c44;
    --hover-surface: rgba(45, 106, 79, 0.12);
}

html[data-theme="dark"] {
    --bg-color: #0d1512;
    --bg-accent: #12201b;
    --surface-color: #15211d;
    --panel-color: #1b2a25;
    --nav-surface: rgba(21, 33, 29, 0.82);
    --text-color: #ebf3ef;
    --muted-color: #a7b8b0;
    --border-color: #294239;
    --shadow-color: rgba(0, 0, 0, 0.35);
    --brand-color: #74c69d;
    --brand-strong: #52b788;
    --hover-surface: rgba(116, 198, 157, 0.16);
}

html {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-color) 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease, color 0.25s ease;
}

.navbar {
    background: var(--nav-surface);
    box-shadow: 0 2px 15px var(--shadow-color);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-color) !important;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--brand-color);
    background: var(--hover-surface);
}

.btn-primary {
    background-color: #2d6a4f;
    border-color: #2d6a4f;
}

.btn-primary:hover {
    background-color: #235c44;
    border-color: #235c44;
}

.btn-outline-primary {
    color: #2d6a4f;
    border-color: #2d6a4f;
}

.btn-outline-primary:hover {
    background-color: #2d6a4f;
    border-color: #2d6a4f;
}

.hero-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(rgba(45, 106, 79, 0.05), rgba(45, 106, 79, 0.1));
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    color: var(--brand-color);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--muted-color);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 106, 79, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    margin-bottom: 1rem;
}

.stat-title {
    color: var(--muted-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--brand-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

.features-section {
    background: var(--surface-color);
    padding: 5rem 0;
}

.feature-card {
    background: var(--panel-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(45, 106, 79, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #2d6a4f;
}

.feature-title {
    color: var(--brand-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-section {
    padding: 5rem 0;
}

.cta-card {
    background: #2d6a4f;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: white;
}

.footer {
    background: var(--surface-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-color);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}



body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, var(--bg-accent) 0%, var(--bg-color) 100%);
    min-height: 100vh;
}

.navbar {
    background: var(--nav-surface);
    box-shadow: 0 2px 15px var(--shadow-color);
    padding: 1rem 2rem;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-color) !important;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--brand-color);
    background: var(--hover-surface);
}

.nav-link.active {
    color: var(--brand-color);
    background: var(--hover-surface);
}

.search-form {
    position: relative;
}

.search-form input {
    padding-left: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--panel-color);
    color: var(--text-color);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
}

.welcome-text {
    color: var(--text-color);
    font-weight: 500;
}

.welcome-name {
    color: var(--brand-color);
    font-weight: 600;
}

.logout-btn {
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #dc3545;
    color: white;
}

.dashboard-content {
    padding: 2rem;
}

.stat-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 106, 79, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d6a4f;
    margin-bottom: 1rem;
}

.stat-title {
    color: var(--muted-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--brand-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
}


.navbar-nav .nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
    transform: translateY(-2px);
}

.navbar-toggler-icon {
    background-color: #007bff;
}

.search-form input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.logout-btn:hover {
    background-color: #0056b3;
}

.welcome-text {
    font-size: 1.2rem;
}

.btn-rounded {
    border-radius: 50px;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--brand-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--surface-color);
    padding: 0 1rem;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: url('/api/placeholder/1920/1080') center/cover;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.9);
}

.auth-card {
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--brand-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.auth-header p {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
}


.signup-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.signup-card {
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-color);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #2d6a4f, #40916c);
}

.signup-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.signup-header h1 {
    color: var(--brand-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.signup-header p {
    color: var(--muted-color);
    font-size: 1rem;
}

.form-floating {
    margin-bottom: 1.25rem;
}
.form-floating > label {
    padding-left: 1rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    font-size: 1rem;
}

.form-control:focus {
    border-color: #40916c;
    box-shadow: 0 0 0 0.25rem rgba(64, 145, 108, 0.25);
}

.btn-signup {
    background: linear-gradient(to right, #2d6a4f, #40916c);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 106, 79, 0.2);
}


.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.login-link a {
    color: #2d6a4f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-link a:hover {
    text-decoration: underline;
}

.password-requirements {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.password-requirements li {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.password-requirements li::before {
    content: '•';
    color: #40916c;
    font-weight: bold;
    margin-right: 0.5rem;
}

@media (max-width: 576px) {
    .signup-card {
        padding: 2rem;
    }
}

html, body {
    height: 100%;
    margin: 0;

}

.footer {
    margin-top: auto;
    padding: 10px 0;
    background-color: var(--surface-color);
    text-align: center;
}

.theme-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.8rem 1rem;
    box-shadow: 0 12px 30px var(--shadow-color);
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

.theme-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.theme-toggle-label {
    line-height: 1;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .table-responsive,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .accordion-item {
    background-color: var(--surface-color) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .table {
    --bs-table-color: var(--text-color);
    --bs-table-bg: transparent;
    --bs-table-striped-color: var(--text-color);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
    --bs-table-hover-color: var(--text-color);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-table-border-color: var(--border-color);
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light {
    background-color: var(--panel-color) !important;
}

html[data-theme="dark"] .text-muted,
.form-text,
.login-link,
.password-requirements {
    color: var(--muted-color) !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-check-input {
    background-color: var(--panel-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .navbar[style],
html[data-theme="dark"] .sticky-top[style] {
    background: var(--nav-surface) !important;
    box-shadow: 0 4px 16px var(--shadow-color) !important;
}

html[data-theme="dark"] .nav-link[style],
html[data-theme="dark"] .welcome-text[style],
html[data-theme="dark"] svg[style*="color: #333"] {
    color: var(--text-color) !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-dark {
    border-color: var(--border-color) !important;
}

html[data-theme="dark"] .btn-light,
html[data-theme="dark"] .btn-secondary {
    background: var(--panel-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%);
}

html[data-theme="dark"] pre,
html[data-theme="dark"] code {
    color: var(--text-color);
}

html[data-theme="dark"] .auth-container {
    background-color: rgba(13, 21, 18, 0.82);
}
