/**
 * Dinamik Vardiya Yönetim Sistemi - Stil Dosyası
 */

/* Genel */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Kartlar */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Vardiya Kartları */
.vardiya-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.vardiya-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.vardiya-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.875em;
    font-weight: 500;
    color: #fff;
    border-radius: 0.375rem;
}

/* Takvim */
.calendar-table {
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    vertical-align: top;
    height: auto;
    min-height: 120px;
}

.calendar-cell {
    padding: 0.5rem !important;
    min-height: 120px;
    position: relative;
}

.calendar-cell.empty {
    background-color: #f8f9fa;
}

.calendar-cell.today {
    background-color: #e3f2fd !important;
    border: 2px solid #2196F3 !important;
}

.calendar-cell.weekend {
    background-color: #fff8e1;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #dee2e6;
}

.day-number {
    font-weight: bold;
    font-size: 1.1em;
}

.day-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shift-item {
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.75em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Takvim */
@media (max-width: 992px) {
    .calendar-table {
        font-size: 0.8rem;
    }
    
    .calendar-cell {
        min-height: 80px;
    }
    
    .shift-item {
        font-size: 0.65em;
    }
}

/* Tablo Stilleri */
.table-responsive {
    border-radius: 0.5rem;
}

.table thead th {
    border-bottom-width: 2px;
    font-weight: 600;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Formlar */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Butonlar */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: 0.375rem 0 0 0.375rem;
}

.btn-group .btn:last-child {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Badge Stilleri */
.badge {
    font-weight: 500;
}

/* Alert Stilleri */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Modal Stilleri */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Yardımcı Sınıflar */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Grup Renkleri */
.grup-a { background-color: #0d6efd !important; }
.grup-b { background-color: #198754 !important; }
.grup-c { background-color: #ffc107 !important; color: #000 !important; }
.grup-d { background-color: #0dcaf0 !important; }

/* Print Stilleri */
@media print {
    .navbar, footer, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .calendar-cell {
        min-height: auto !important;
    }
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Vardiya Renk Kodları (Arka Plan) */
.bg-sabah { background-color: #ffc10720; }
.bg-aksam { background-color: #fd7e1420; }
.bg-gece { background-color: #6f42c120; }
.bg-izin { background-color: #17a2b820; }
.bg-rapor { background-color: #dc354520; }
.bg-dinlenme { background-color: #6c757d20; }

/* Display Utilities */
.display-7 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
}
