﻿
:root {
    --bs-primary: #2e64b3;
}

.body-wrapper {
    position: relative;
    top: 0;
    height: calc(100vh - 96px); /* 56 header + 40 footer */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
}

.main-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow-x: hidden;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.sidebar {
    width: 250px;
    background-color: #1e2a38;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .sidebar.collapsed {
        width: 60px;
    }

        .sidebar.collapsed .sidebar-text {
            opacity: 0;
            transform: translateX(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
        }

    .sidebar .sidebar-text {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: inline;
    }

.sidebar {
    overflow-y: auto;
    overflow-x: hidden;
}

    .sidebar.collapsed {
        overflow-x: hidden;
    }

    .sidebar .nav-link {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .sidebar.collapsed .nav-link span,
    .sidebar.collapsed .nav-item ul {
        display: none;
    }

    .sidebar.hide {
        left: -250px !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: left 0.3s ease, opacity 0.3s ease;
    }

        .sidebar.hide .sidebar-text {
            display: none !important;
        }

.chevron-icon {
    transition: transform 0.3s ease;
}

    .chevron-icon.rotate {
        transform: rotate(90deg);
    }

.main-wrapper {
    flex-grow: 1;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    width: 100%;
}

    .main-wrapper.collapsed {
        margin-left: 60px;
    }

@media (max-width: 768px) {
    .main-wrapper,
    .main-wrapper.collapsed {
        margin-left: 0 !important;
    }

    .sidebar {
        z-index: 1050;
    }
}

.header {
    height: 56px;
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-icons {
    width: 20px;
}

.main-content {
    padding: 1rem;
    background-color: inherit;
    min-height: calc(100vh - 56px);
}

.footer {
    background-color: #f8f9fa;
    color: #6c757d;
    height: 40px;
    line-height: 30px;
    padding: 0 15px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 999;
}

.theme-primary .main-content {
    background-color: #f8f9fa;
    color: #212529;
}

.theme-success .main-content {
    background-color: #e9f7ef;
    color: #1e4620;
}

.theme-danger .main-content {
    background-color: #fcebea;
    color: #611a15;
}

.theme-warning .main-content {
    background-color: #fff3cd;
    color: #664d03;
}

.theme-dark .main-content {
    background-color: #1e1e2f;
    color: #f8f9fa;
}

.theme-primary .header {
    background-color: #2e64b3;
}

.theme-success .header {
    background-color: #198754;
}

.theme-danger .header {
    background-color: #dc3545;
}

.theme-warning .header {
    background-color: #ffc107;
    color: #212529;
}

.theme-dark .header {
    background-color: #121212;
    color: #f8f9fa;
}

.table th,
.table td {
    vertical-align: middle;
}

.theme-primary .theme-card {
    border-left: 4px solid #2e64b3;
    background-color: #f0f4fc;
}

.theme-success .theme-card {
    border-left: 4px solid #198754;
    background-color: #eaf7f0;
}

.theme-danger .theme-card {
    border-left: 4px solid #dc3545;
    background-color: #fcebec;
}

.theme-warning .theme-card {
    border-left: 4px solid #ffc107;
    background-color: #fff8e5;
}

.theme-dark .theme-card {
    border-left: 4px solid #121212;
    background-color: #1e1e2f;
    color: #f8f9fa;
}

.theme-card {
    border-left: 4px solid var(--bs-primary);
    border-radius: 0.5rem;
    overflow: hidden;
}

    .theme-card .card-header {
        background-color: var(--bs-primary);
        color: #fff;
        font-weight: 600;
    }

    .theme-card .btn-outline-primary {
        border-color: var(--bs-primary);
        color: var(--bs-primary);
    }

        .theme-card .btn-outline-primary:hover {
            background-color: var(--bs-primary);
            color: #fff;
        }

    .theme-card .btn-primary {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

.card-header h5 {
    font-weight: 600;
}

.theme-primary .theme-table-header {
    background-color: #d7e3f8;
}

.theme-success .theme-table-header {
    background-color: #d3f3e4;
}

.theme-danger .theme-table-header {
    background-color: #f9d6d5;
}

.theme-warning .theme-table-header {
    background-color: #fff3cd;
}

.theme-dark .theme-table-header {
    background-color: #2c2c3a;
    color: #f8f9fa;
}

.theme-success .theme-buttons .btn-outline-success {
    border-color: #198754;
    color: #198754;
}

    .theme-success .theme-buttons .btn-outline-success:hover {
        background-color: #198754;
        color: #fff;
    }

.theme-danger .theme-buttons .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

    .theme-danger .theme-buttons .btn-outline-danger:hover {
        background-color: #dc3545;
        color: #fff;
    }

.theme-primary .theme-header {
    background-color: #2e64b3;
}

.theme-success .theme-header {
    background-color: #198754;
}

.theme-danger .theme-header {
    background-color: #dc3545;
}

.theme-warning .theme-header {
    background-color: #ffc107;
    color: #212529;
}

.theme-dark .theme-header {
    background-color: #121212;
    color: #f8f9fa;
}

.theme-primary .theme-card, .theme-primary .theme-card input, .theme-primary .theme-card .card-body, . .theme-primary .theme-card td {
    color: #212529;
}

.theme-success .theme-card, .theme-success .theme-card input, .theme-success .theme-card .card-body, .theme-success .theme-card td {
    color: #1e4620;
}

.theme-danger .theme-card, .theme-danger .theme-card input, .theme-danger .theme-card .card-body, .theme-danger .theme-card td {
    color: #611a15;
}

.theme-warning .theme-card, .theme-warning .theme-card input, .theme-warning .theme-card .card-body, .theme-warning .theme-card td {
    color: #664d03;
}

.theme-dark .theme-card input,
.theme-dark .theme-card .card-body,
.theme-dark .theme-card td,
.theme-dark .theme-card th,
.theme-dark .theme-card .form-control {
    color: #f8f9fa;
    background-color: #2a2a3a;
    border-color: #444;
}

.theme-dark .form-control::placeholder {
    color: #bbb;
}

.theme-dark .btn-outline-success,
.theme-dark .btn-outline-danger,
.theme-dark .btn-outline-primary {
    color: #f8f9fa;
    border-color: #aaa;
}

    .theme-dark .btn-outline-success:hover,
    .theme-dark .btn-outline-danger:hover,
    .theme-dark .btn-outline-primary:hover {
        background-color: #444;
        color: #fff;
    }
/* === Select uyumluluğu (Dark Mode) === */
.theme-dark select,
.theme-dark .form-select {
    background-color: #2a2a3a;
    color: #f8f9fa;
    border-color: #444;
}

    .theme-dark select:focus,
    .theme-dark .form-select:focus {
        background-color: #343a40;
        color: #fff;
        border-color: #666;
        box-shadow: none;
    }
/* === Toast === */
.toast-container {
    transition: opacity 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.4s ease-in-out;
}

.toast-progress-bar {
    height: 4px;
    background-color: #0d6efd;
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.dropdown-toggle {
    cursor: pointer;
}

.theme-dark .dropdown-menu {
    background-color: #2a2a3a;
    color: #f8f9fa;
    border: 1px solid #444;
}

    .theme-dark .dropdown-menu .dropdown-item {
        color: #f8f9fa;
    }

        .theme-dark .dropdown-menu .dropdown-item:hover {
            background-color: #444;
        }

.theme-primary .dropdown-menu {
    background-color: #f0f4fc;
    color: #212529;
}

    .theme-primary .dropdown-menu .dropdown-item {
        color: #212529;
    }

        .theme-primary .dropdown-menu .dropdown-item:hover {
            background-color: #d7e3f8;
        }

.theme-success .dropdown-menu {
    background-color: #eaf7f0;
    color: #1e4620;
}

    .theme-success .dropdown-menu .dropdown-item {
        color: #1e4620;
    }

        .theme-success .dropdown-menu .dropdown-item:hover {
            background-color: #d3f3e4;
        }

.theme-danger .dropdown-menu {
    background-color: #fcebec;
    color: #611a15;
}

    .theme-danger .dropdown-menu .dropdown-item {
        color: #611a15;
    }

        .theme-danger .dropdown-menu .dropdown-item:hover {
            background-color: #f9d6d5;
        }

.theme-warning .dropdown-menu {
    background-color: #fff8e5;
    color: #664d03;
}

    .theme-warning .dropdown-menu .dropdown-item {
        color: #664d03;
    }

        .theme-warning .dropdown-menu .dropdown-item:hover {
            background-color: #fff3cd;
        }

.custom-file-upload label {
    cursor: pointer;
}
.custom-file-upload span {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.theme-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-card {
    width: 700px;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

.theme-modal-header {
    padding: 1rem 1.25rem;
    min-height: 72px;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
    background-color: var(--theme-bg);
}

.theme-modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: var(--theme-bg);
}

/* Bootstrap'a uygun renklerle güncellenmiş pastel kutu stilleri */

.bg-dashboard {
    border-left: 4px solid var(--bs-primary);
    height : 120px;
    border-radius: 0.5rem;
    overflow: hidden;
}
.bg-dashboard-blue {
    background-color: #345d99; /* Bootstrap bg-primary */
    color: #fff;
}

.bg-dashboard-teal {
    background-color: #1f8ba1; /* Bootstrap bg-info */
    color: #fff;
}

.bg-dashboard-green {
    background-color: #198754; /* Bootstrap bg-success */
    color: #fff;
}

.bg-dashboard-yellow {
    background-color: #e6b629; /* Bootstrap bg-warning */
    color: #000;
}

.bg-dashboard-red {
    background-color: #dc3545; /* Bootstrap bg-danger */
    color: #fff;
}

.dashboard-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem; /* Dilersen tek yerden 3rem/2.5rem yapabilirsin */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Kutu Rengi: #0dcaf0 → Footer: daha koyu turkuaz */
.bg-dashboard-blue-footer {
    background-color: #1e3557;
    color: #fff;
}

/* Kutu Rengi: #0dcaf0 → Footer: daha koyu turkuaz */
.bg-dashboard-teal-footer {
    background-color: #1c535e;
    color: #fff;
}

/* Kutu Rengi: #198754 → Footer: daha koyu yeşil */
.bg-dashboard-green-footer {
    background-color: #146c43;
    color: #fff;
}

/* Kutu Rengi: #ffc107 → Footer: daha koyu sarımsı */
.bg-dashboard-yellow-footer {
    background-color: #cc9a06;
    color: #000;
}

/* Kutu Rengi: #dc3545 → Footer: daha koyu kırmızı */
.bg-dashboard-red-footer {
    background-color: #b02a37;
    color: #fff;
}
.theme-csebox {
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    overflow: hidden;
    margin-bottom: 1rem;
}

.theme-csebox-header {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.theme-csebox-body {
    padding: 1rem;
    font-size: 0.875rem;
}


