:root {
    /* Light Theme Colors */
    --primary: #2a4dff;
    --primary-dark: #1a3ad9;
    --secondary: #6c63ff;
    --dark: #2d3748;
    --light: #f8f9fa;
    --gray: #718096;
    --light-gray: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --transition: all 0.3s ease;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-footer: #2d3748;
    
    /* Text */
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #ffffff;
    --text-inverse: #2d3748;
    
    /* Borders */
    --border-color: #e2e8f0;
    
    /* Shadows */
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Dashboard Colors */
    --dashboard-header: #2d3748;
    --dashboard-bg: #ffffff;
    --dashboard-card: #f8f9ff;
    --dashboard-table-header: #f1f5f9;
}

/* Dark Theme Colors */
.dark-mode {
    --primary: #5b7cff;
    --primary-dark: #4a6cff;
    --secondary: #7c73ff;
    --dark: #1a202c;
    --light: #2d3748;
    --gray: #a0aec0;
    --light-gray: #4a5568;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Backgrounds */
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #4a5568;
    --bg-card: #2d3748;
    --bg-header: rgba(26, 32, 44, 0.95);
    --bg-footer: #1a202c;
    
    /* Text */
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --text-light: #f7fafc;
    --text-inverse: #1a202c;
    
    /* Borders */
    --border-color: #4a5568;
    
    /* Shadows */
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Dashboard Colors */
    --dashboard-header: #1a202c;
    --dashboard-bg: #2d3748;
    --dashboard-card: #4a5568;
    --dashboard-table-header: #2d3748;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--light-gray);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    transition: var(--transition);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.dark-mode .theme-toggle::after {
    transform: translateX(30px);
    background: var(--warning);
}

.theme-toggle i {
    position: absolute;
    top: 7px;
    font-size: 14px;
    color: var(--text-primary);
    z-index: 1;
}

.theme-toggle .fa-sun {
    left: 8px;
}

.theme-toggle .fa-moon {
    right: 8px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-header);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    color: var(--primary);
    font-size: 28px;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 77, 255, 0.2);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: rgba(42, 77, 255, 0.05);
    transform: translateY(-2px);
}

.logout-btn {
    background-color: var(--danger);
}

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

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: var(--text-secondary);
    font-weight: 600;
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.dark-mode .hero-image img {
    filter: brightness(0.85);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--text-light);
    font-size: 28px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Platform Overview */
.platform-overview {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.platform-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.platform-text {
    flex: 1;
}

.platform-text h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.platform-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.platform-list {
    list-style: none;
    margin-bottom: 2rem;
}

.platform-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
}

.platform-list i {
    color: var(--success);
    margin-right: 10px;
    font-size: 20px;
    margin-top: 3px;
}

.platform-image {
    flex: 1;
    text-align: center;
}

.platform-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.dark-mode .platform-image img {
    filter: brightness(0.85);
}

/* Production Dashboard Section */
.production-dashboard {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.dashboard-container {
    background: var(--dashboard-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
}

.dashboard-header {
    background: var(--dashboard-header);
    color: var(--text-light);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    display: flex;
    align-items: center;
}

.dashboard-title i {
    margin-right: 10px;
    color: var(--primary);
}

.dashboard-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.dashboard-content {
    padding: 30px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--dashboard-card);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.stat-card h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.dashboard-table th {
    background-color: var(--dashboard-table-header);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.dashboard-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.dashboard-table tr:hover {
    background-color: var(--bg-tertiary);
}

.line-highlight {
    background-color: rgba(42, 77, 255, 0.05) !important;
    font-weight: 600;
}

.dark-mode .line-highlight {
    background-color: rgba(91, 124, 255, 0.1) !important;
}

.performance-good {
    color: var(--success);
    font-weight: 600;
}

.performance-avg {
    color: var(--warning);
    font-weight: 600;
}

.performance-low {
    color: var(--danger);
    font-weight: 600;
}

.dashboard-footer {
    background: var(--dashboard-card);
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-produced {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.completion-rate {
    text-align: center;
}

.completion-rate .percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Attendance Calculation Section */
.attendance-calc {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.attendance-container {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
}

.attendance-header {
    background: var(--dashboard-header);
    color: var(--text-light);
    padding: 20px 30px;
}

.attendance-header h3 {
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-bottom: 5px;
}

.attendance-header h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.attendance-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.attendance-content {
    padding: 30px;
}

.calculation-explanation {
    background: var(--dashboard-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--warning);
}

.calculation-explanation h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.calculation-explanation h4 i {
    margin-right: 10px;
    color: var(--warning);
}

.calculation-explanation p {
    color: var(--text-secondary);
}

.calculation-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.rule-card {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.rule-card h5 {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.rule-card h5 i {
    margin-right: 8px;
    font-size: 14px;
}

.rule-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.attendance-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.attendance-table th {
    background-color: var(--dashboard-table-header);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.attendance-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.attendance-table tr:nth-child(even) {
    background-color: var(--bg-tertiary);
}

.attendance-table tr:hover {
    background-color: var(--dashboard-card);
}

.normal-day {
    border-left: 4px solid var(--success);
}

.overtime-day {
    border-left: 4px solid var(--warning);
}

.short-day {
    border-left: 4px solid var(--danger);
}

.calculation-breakdown {
    background: rgba(59, 130, 246, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.dark-mode .calculation-breakdown {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.calculation-breakdown h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.calculation-breakdown h4 i {
    margin-right: 10px;
    color: var(--primary);
}

.calculation-breakdown p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.breakdown-steps {
    margin-left: 20px;
    color: var(--text-secondary);
}

.breakdown-steps li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.breakdown-steps strong {
    color: var(--text-primary);
}

.breakdown-steps .formula {
    background: var(--bg-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    margin: 5px 0;
    border: 1px dashed var(--border-color);
    color: var(--text-primary);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.cta-section .cta-button {
    background-color: var(--text-light);
    color: var(--primary);
}

.cta-section .cta-button:hover {
    background-color: var(--light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 70px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-about {
    flex: 2;
    padding-right: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-light);
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-about p {
    color: #a0aec0;
    margin-bottom: 25px;
}

.footer-links {
    flex: 1;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact {
    flex: 1;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #a0aec0;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 77, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--bg-secondary);
}

.auth-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
}

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

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

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .platform-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-about {
        padding-right: 0;
        margin-bottom: 40px;
    }
}
 /* Theme Toggle Styles */
.theme-toggle-item {
    margin-left: 15px;
}

.theme-toggle-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.theme-toggle-btn {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--light-gray);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
}

.theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-primary);
    z-index: 2;
    transition: var(--transition);
}

.theme-icon.sun {
    left: 8px;
}

.theme-icon.moon {
    right: 8px;
}

.theme-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.dark-mode .theme-slider {
    transform: translateX(30px);
    background: var(--warning);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2, .platform-text h2, .cta-section h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .theme-toggle {
        position: absolute;
        top: 15px;
        right: 60px;
        margin-left: 0;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav li {
        margin: 15px 0;
    }
    
    .dashboard-stats, .calculation-rules {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header, .dashboard-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .attendance-table th, .attendance-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
   

/* Update theme-specific colors for toggle */
.light-mode .theme-toggle-btn {
    background: #e2e8f0;
}

.dark-mode .theme-toggle-btn {
    background: #4a5568;
}

/* Ensure theme classes are applied correctly */
body.light-mode {
    color-scheme: light;
}

body.dark-mode {
    color-scheme: dark;
}

/* Add smooth transitions for theme changes */
body, 
header, 
footer, 
.dashboard-container,
.attendance-container,
.feature-card,
.stat-card,
.form-control {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Show only one icon based on theme */

/* Light mode */
body.light-mode .theme-icon.sun {
    opacity: 1;
}

body.light-mode .theme-icon.moon {
    opacity: 0;
}

/* Dark mode */
body.dark-mode .theme-icon.sun {
    opacity: 0;
}

body.dark-mode .theme-icon.moon {
    opacity: 1;
}


}