/* Öğrenci Yönetim Sistemi - Stil Dosyası */

.ogrenci-yonetim-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.oy-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

/* Bildirim */
.oy-notification {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.oy-notification.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.oy-notification.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

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

/* Form Bölümü */
.oy-form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.oy-form-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
}

.oy-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.oy-form-group {
    display: flex;
    flex-direction: column;
}

.oy-form-group label {
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.oy-form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.oy-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Butonlar */
.oy-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.oy-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.oy-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.oy-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.oy-btn-secondary {
    background: #6c757d;
    color: white;
}

.oy-btn-secondary:hover {
    background: #5a6268;
}

/* Tablo Bölümü */
.oy-table-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.oy-table-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

.oy-table-responsive {
    overflow-x: auto;
}

.oy-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.oy-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.oy-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.oy-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.oy-table tbody tr:hover {
    background: #f8f9ff;
    transition: background 0.2s ease;
}

.oy-table tbody tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.oy-action-buttons {
    display: flex;
    gap: 8px;
}

.oy-btn-edit {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.oy-btn-edit:hover {
    background: #218838;
    transform: translateY(-1px);
}

.oy-btn-delete {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.oy-btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Loading & Empty States */
.oy-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.oy-no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .oy-title {
        font-size: 1.8em;
    }
    
    .oy-form-grid {
        grid-template-columns: 1fr;
    }
    
    .oy-btn-group {
        flex-direction: column;
    }
    
    .oy-btn {
        width: 100%;
    }
    
    .oy-table {
        font-size: 0.85em;
    }
    
    .oy-table th,
    .oy-table td {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .ogrenci-yonetim-container {
        padding: 10px;
    }
    
    .oy-form-section,
    .oy-table-section {
        padding: 20px;
    }
    
    .oy-action-buttons {
        flex-direction: column;
    }
    
    .oy-btn-edit,
    .oy-btn-delete {
        width: 100%;
    }
}
