/* DersMatik Custom Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    font-size: 16px; /* Base font-size 2px artırıldı (14px → 16px) */
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.625rem; /* 1.5rem + 2px ≈ 1.625rem */
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    font-size: 1.125rem; /* Kart başlıkları için artırıldı */
}

.table {
    background-color: white;
    font-size: 1rem; /* Tablo için artırıldı */
}

.btn {
    border-radius: 5px;
}

/* Program Tablosu */
.program-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.program-table th,
.program-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: center;
}

.program-table th {
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
}

.program-cell {
    min-height: 80px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.program-cell:hover {
    background-color: #f8f9fa;
}

.program-cell.filled {
    background-color: #e7f3ff;
}

.ders-card {
    padding: 8px;
    border-radius: 5px;
    font-size: 0.9375rem; /* 0.85rem + 2px ≈ 0.9375rem */
    line-height: 1.3;
}

.ders-adi {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 1rem; /* Ders adı için artırıldı */
}

.ogretmen-adi {
    font-size: 0.875rem; /* 0.75rem + 2px ≈ 0.875rem */
    color: #6c757d;
}

.derslik-adi {
    font-size: 0.8125rem; /* 0.7rem + 2px ≈ 0.8125rem */
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .program-table {
        font-size: 0.9375rem; /* 0.8rem + 2px ≈ 0.9375rem */
    }
    
    .program-cell {
        min-height: 60px;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.active {
    display: flex;
}

/* Form Improvements */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.badge {
    padding: 0.5em 0.75em;
}
