﻿/* === Karanlık Tema: Doğal Zeytin Tonlarında === */

body.dark-theme, .layout-main.dark-theme {
    background-color: #1a1a1a; /* Derin siyah-kahve */
    color: #e0e0e0; /* Hafif aydınlık gri */
}

/* === Navbar & Header - Karanlık === */
header.dark-theme, .navbar.dark-theme, .bg-primary.dark-theme {
    background-color: #4a6b4b !important; /* Ana yeşilin daha koyusu */
    color: #f8f8f4 !important;
}

.navbar-brand.dark-theme,
.navbar-nav .nav-link.dark-theme,
.dropdown-toggle.dark-theme {
    color: #f8f8f4 !important;
}

    .navbar-nav .nav-link.dark-theme:hover {
        color: #dfa65f !important; /* Vurgu sarısı */
    }

.navbar .dropdown-menu.dark-theme {
    background-color: #2d2d2d;
    border: 1px solid #8c7851;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dropdown-menu .dropdown-item.dark-theme {
    color: #e0e0e0;
}

    .dropdown-menu .dropdown-item.dark-theme:hover {
        background-color: #8c7851;
        color: #f8f8f4;
    }

/* === Card ve Kutular - Karanlık === */
.card.dark-theme {
    background-color: #222;
    border: 1px solid #5b845c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
}

.card-body.dark-theme {
    background-color: #2a2a2a;
}

.card-title.dark-theme {
    color: #dfa65f; /* Vurgu sarısı ile kontrast */
}

/* === Sidebar - Karanlık === */
.sidebar-modern.dark-theme {
    background-color: #1e1e1e;
    border-right: 2px solid #8c7851;
}

.sidebar-modern .nav-link.dark-theme {
    color: #e0e0e0;
}

    .sidebar-modern .nav-link.dark-theme:hover {
        background-color: rgba(91, 132, 92, 0.2);
        color: #dfa65f;
    }

    .sidebar-modern .nav-link.dark-theme.active {
        background-color: #8c7851 !important;
        color: #f8f8f4 !important;
        border-left: 5px solid #5b845c;
    }

/* === Butonlar - Karanlık === */
.btn-primary.dark-theme {
    background-color: #5b845c;
    border-color: #5b845c;
}

    .btn-primary.dark-theme:hover {
        background-color: #4a6b4b;
        border-color: #4a6b4b;
    }

.btn-outline-primary.dark-theme {
    color: #dfa65f;
    border-color: #dfa65f;
}

    .btn-outline-primary.dark-theme:hover {
        background-color: #dfa65f;
        color: #1a1a1a;
    }

/* === Tablolar - Karanlık === */
.styled-table.dark-theme {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

    .styled-table.dark-theme thead tr {
        background-color: #3a3a3a;
        color: #f8f8f4;
    }

    .styled-table.dark-theme th,
    .styled-table.dark-theme td {
        border: 1px solid #444;
        color: #e0e0e0;
    }

    .styled-table.dark-theme tbody tr:nth-child(even) {
        background-color: #2d2d2d;
    }

    .styled-table.dark-theme tbody tr:hover {
        background-color: #3c3c3c;
    }

    .styled-table.dark-theme .highlight {
        background-color: #8c7851;
        color: #f8f8f4;
    }

/* === Progress Bar - Karanlık === */
.progress.dark-theme {
    background-color: #333;
}

.progress-bar.dark-theme {
    background-color: #66bb6a;
}

/* === Footer - Karanlık === */
footer.dark-theme {
    background-color: #1e1e1e;
    color: #8c7851;
    border-top: 1px solid #444;
}

/* === Spinner - Karanlık === */
.spinner-border.dark-theme {
    color: #dfa65f !important;
}

/* === Genel Yazılar ve Başlıklar - Karanlık === */
h1.dark-theme, h2.dark-theme, h3.dark-theme, h4.dark-theme, h5.dark-theme {
    color: #dfa65f;
}

/* === Form Kontrolleri - Karanlık === */
.form-control.dark-theme {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #5b845c;
}

    .form-control.dark-theme:focus {
        background-color: #333;
        border-color: #dfa65f;
        color: #f8f8f4;
        box-shadow: 0 0 0 0.2rem rgba(91, 132, 92, 0.25);
    }

/* === Input Group, Table Responsive vs. */
.table-responsive.dark-theme {
    background-color: #222;
}

/* === Tooltip - Karanlık === */
.tooltip-inner.dark-theme {
    background-color: #4a6b4b;
}

.tooltip.bs-tooltip-top .arrow::before.dark-theme {
    border-top-color: #4a6b4b;
}
