/* Genel Arka Plan */
body {
    margin: 60px;
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    text-align: var(--bs-body-text-align);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Genel Stil */
#sidebar {
    width: 240px;
    height: calc(100vh - 56px); /* Ekran yüksekliği - header yüksekliği */
    position: fixed;
    top: 56px;
    left: 0;
    overflow-y: auto;
    background-color: #ffffff;
    z-index: 1030;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    transition: left 0.3s ease-in-out, box-shadow 0.3s;
    border-right: 1px solid #eee;
    scrollbar-width: thin; /* Firefox için ince scroll */
}

/* Webkit scroll (Chrome) */
#sidebar::-webkit-scrollbar {
    width: 6px;
}
#sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

#sidebar ul.nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar .nav-link {
    color: #444;
    font-weight: 500;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    margin-right: 10px;
    color: #0075ff;
    transition: transform 0.2s ease;
}

#sidebar .nav-link:hover {
    background-color: #f2f6ff;
    color: #0075ff;
    transform: translateX(4px);
}

#sidebar .nav-link:hover i {
    transform: scale(1.2);
}

/* Aktif link için örnek */
#sidebar .nav-link.active {
    background-color: #e6f0ff;
    color: #0075ff;
    font-weight: 600;
}

/* Sidebar mobil açılır */
@media (max-width: 991.98px) {
    #sidebar {
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 260px;
        height: 100%;
        box-shadow: none;
        border-right: none;
    }

    #sidebar.active {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    #sidebarOverlay {
        display: none;
        position: fixed;
        z-index: 1029;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
    }

    #sidebarOverlay.active {
        display: block;
    }
}


/* İçerik Alanı */
#main-content {
    margin-left: 220px; /* Sidebar genişliği ile eşleşmeli */
    width: calc(100% - 220px);
    padding: 20px;
    box-sizing: border-box;
}
@media (max-width: 991.98px) {
    #main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }
}

/* Widget Kutuları */
.widget-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 25px 15px;
    text-align: center;
    transition: 0.3s;
    height: 100%;
}
.widget-box:hover {
    transform: translateY(-3px);
}
.widget-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
}
.bg-icon-primary { background-color: #007bff; }
.bg-icon-success { background-color: #28a745; }
.bg-icon-warning { background-color: #ffc107; }
.bg-icon-info    { background-color: #17a2b8; }

/* Responsive Grid */
.row.g-4 .col-md-3,
.row.g-4 .col-sm-6 {
    display: flex;
}



/* ------------------ Genel Başlıklar ------------------ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #212529;
}

/* ------------------ Butonlar ------------------ */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.45rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .375rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004fa3;
}
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.btn-danger:hover {
    background-color: #bd2130;
    border-color: #b21f2d;
}
.btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #212529;
}
.btn-light:hover {
    background-color: #e2e6ea;
}

/* ------------------ Form Elemanları ------------------ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    margin-bottom: 15px;
}
input:focus,
select:focus,
textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

/* ------------------ Label ------------------ */
label {
    display: inline-block;
    margin-bottom: .5rem;
    font-weight: 500;
    color: #343a40;
}

/* ------------------ Tablo ------------------ */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}
.table th,
.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}
.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}
.table-hover tbody tr:hover {
    background-color: #f2f6ff;
}

/* ------------------ Kartlar ------------------ */
/* Kartlar - Modern UI */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card .display-6 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}
.bg-gradient-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
}
.bg-gradient-warning {
    background: linear-gradient(45deg, #ffc107, #d39e00);
    color: #000 !important;
}
.bg-gradient-info {
    background: linear-gradient(45deg, #17a2b8, #117a8b);
}
.bg-gradient-danger {
    background: linear-gradient(45deg, #dc3545, #b02a37);
}

/* Tablolar */
.table-responsive {
    overflow-x: auto;
}
.table > tbody > tr:hover {
    background-color: #f8f9fa;
}

/* Takvim başlıkları */
.fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}
.fc .fc-button {
    font-weight: 500;
    border-radius: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}
.fc .fc-daygrid-event {
    padding: 4px 6px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}
.fc-daygrid-day-frame {
    min-height: 100px;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.modal-header,
.modal-footer {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .card .display-6 {
        font-size: 2rem;
    }
    .fc .fc-toolbar-title {
        font-size: 1.2rem;
    }
    .fc .fc-button {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
}
@media (max-width: 576px) {
    .card .display-6 {
        font-size: 1.7rem;
    }
    .fc .fc-button {
        font-size: 0.7rem;
    }
    #main-content {
        padding: 10px;
    }
}

/* ------------------ Footer ------------------ */
.footer {
    background-color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 0.875rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}




#main-content{ margin-left:260px; width:calc(100% - 260px); padding:20px; }
@media (max-width: 991.98px){ #main-content{ margin-left:0; width:100%; padding:16px; } }

