/* Not Yönetim Sistemi - Stil Dosyası */

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

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

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

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

.ny-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);
    }
}

/* Tab Menü */
.ny-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.ny-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.ny-tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.ny-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.ny-tab-content {
    display: none;
}

.ny-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

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

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

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

.ny-form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Hesaplama Bilgi Kutusu */
.ny-hesaplama-bilgi {
    margin: 20px 0;
}

.ny-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.ny-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.ny-info-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.ny-info-value {
    font-size: 1.8em;
    font-weight: 700;
}

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

.ny-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;
}

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

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

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

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

/* Öğrenci Bilgi Kartı */
.ny-ogrenci-bilgi-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.ny-ogrenci-bilgi-card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.ny-bilgi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.ny-bilgi-grid div {
    padding: 10px;
    background: #f8f9ff;
    border-radius: 6px;
}

.ny-highlight {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2em;
}

/* Dönem Kartı */
.ny-donem-notlar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.ny-donem-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
}

.ny-donem-header h4 {
    margin: 0;
    font-size: 1.3em;
}

/* Not Tablosu */
.ny-not-table {
    width: 100%;
    border-collapse: collapse;
}

.ny-not-table thead {
    background: #f8f9ff;
}

.ny-not-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.ny-not-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.ny-not-table tbody tr:hover {
    background: #f8f9ff;
}

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

/* Harf Notu Badge */
.ny-harf-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
}

.ny-harf-badge.gecti {
    background: #d4edda;
    color: #155724;
}

.ny-harf-badge.kaldi {
    background: #f8d7da;
    color: #721c24;
}

/* Durum Badge */
.ny-durum-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
}

.ny-durum-badge.gecti {
    background: #28a745;
    color: white;
}

.ny-durum-badge.kaldi {
    background: #dc3545;
    color: white;
}

/* Alınmayan Dersler */
.ny-section-header {
    background: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ny-section-header h3 {
    margin: 0;
    color: #667eea;
    font-size: 1.5em;
}

#alinmayan-dersler-list {
    background: white;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ny-alinmayan-donem {
    margin-bottom: 20px;
}

.ny-alinmayan-donem h4 {
    color: #764ba2;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.ny-ders-chip {
    display: inline-block;
    background: #f8f9ff;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
}

.ny-ders-kod {
    font-weight: 700;
    color: #667eea;
    margin-right: 8px;
}

/* Action Buttons */
.ny-btn-delete-mini {
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.ny-btn-delete-mini:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* 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) {
    .ny-title {
        font-size: 1.8em;
    }
    
    .ny-tabs {
        flex-direction: column;
    }
    
    .ny-tab-btn {
        width: 100%;
        text-align: left;
    }
    
    .ny-form-grid {
        grid-template-columns: 1fr;
    }
    
    .ny-btn-group {
        flex-direction: column;
    }
    
    .ny-btn {
        width: 100%;
    }
    
    .ny-info-box {
        grid-template-columns: 1fr;
    }
    
    .ny-bilgi-grid {
        grid-template-columns: 1fr;
    }
    
    .ny-not-table {
        font-size: 0.85em;
    }
    
    .ny-not-table th,
    .ny-not-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    .not-yonetim-container {
        padding: 10px;
    }
    
    .ny-form-section,
    .ny-ogrenci-bilgi-card {
        padding: 20px;
    }
    
    .ny-ders-chip {
        display: block;
        margin: 5px 0;
    }
}

/* Loading Animation */
.ny-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.ny-no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
