/* Kelebek Dağıtım Sistemi - Özel Stiller */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Öğrenci listesi stilleri */
.student-class-card {
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
}

.student-table {
    font-size: 0.9rem;
}

.student-table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.student-table td {
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.student-table tr:hover {
    background-color: #f8f9fa;
}

/* Derslik kartları */
.classroom-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.classroom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.classroom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.classroom-capacity {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.classroom-floor {
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Dağıtım sonuçları */
.distribution-summary {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.distribution-classroom {
    border-left: 4px solid #28a745;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.distribution-classroom h6 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Checkbox stilleri */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
}

/* Rapor stilleri */
.report-card {
    border-left: 4px solid #dc3545;
    margin-bottom: 20px;
}

.report-header {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

.student-list-table {
    font-size: 0.9rem;
}

.student-list-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border: none;
}

.student-list-table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
}

/* Yazdırma stilleri */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
    
    .report-card {
        margin-bottom: 30px;
        page-break-after: always;
    }
    
    .report-card:last-child {
        page-break-after: auto;
    }
}

/* Loading animasyonu */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert stilleri */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Kelebek dağıtım görselleştirme */
.butterfly-visualization {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.butterfly-wing {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 15px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
}
