/* BEP İşlemleri Interface Styles */

/* CHECKBOX SORUNU DÜZELTİLDİ */
#kd-kayitlar-table {
    table-layout: fixed !important;
    width: 100% !important;
}

#kd-kayitlar-table th:first-child,
#kd-kayitlar-table td:first-child {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    text-align: center !important;
}

/* BEP Modal Düzeltmeleri - UIKit modal override */
#bep-interface .uk-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#bep-interface .uk-modal-dialog {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    max-width: 100vw !important;
}

#bep-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 9999;
    overflow: hidden;
}

.bep-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.bep-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bep-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bep-icon {
    font-size: 24px;
}

.bep-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.bep-close-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bep-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* Content */
.bep-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.bep-sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid #e1e5e9;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.bep-menu {
    padding: 20px 0;
}

.bep-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    color: #4a5568;
}

.bep-menu-item:hover {
    background: #f7fafc;
    color: #2d3748;
    border-left-color: #e2e8f0;
}

.bep-menu-item.active {
    background: linear-gradient(135deg, #667eea20, #764ba220);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.menu-icon {
    font-size: 18px;
    min-width: 20px;
}

.menu-text {
    flex: 1;
    line-height: 1.4;
}

/* Main content */
.bep-main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: white;
}

.bep-content-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.bep-content-panel.active {
    display: block;
}

.bep-content-panel h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 24px;
    font-weight: 600;
}

.bep-content-panel p {
    margin: 0 0 25px 0;
    color: #718096;
    font-size: 16px;
    line-height: 1.6;
}

.bep-form-area {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bep-form-area .uk-button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bep-form-area .uk-button-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.bep-form-area .uk-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.bep-form-area .uk-button-default {
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.bep-form-area .uk-button-default:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .bep-sidebar {
        width: 280px;
    }

    .bep-main-content {
        padding: 20px;
    }

    .bep-header {
        padding: 12px 20px;
    }

    .bep-title h2 {
        font-size: 18px;
    }

    .bep-menu-item {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bep-content {
        flex-direction: column;
    }

    .bep-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }

    .bep-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        gap: 10px;
    }

    .bep-menu-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 15px;
        min-width: 150px;
    }

    .bep-menu-item.active {
        border-left: none;
        border-bottom-color: #667eea;
    }

    .bep-main-content {
        padding: 15px;
    }
}

/* KOMPLE ACCORDION YAPISI - Program → Modül → Bölüm → Hedef → Davranış */

/* Program Level (Mavi) */
.acc-program {


    background: white;

}

.acc-program-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    cursor: pointer;
    gap: 12px;
 margin-bottom: 5px;
    font-weight: 600;
    font-size: 1.1rem;
}

.acc-program-content {
    padding: 2px;
    border-top: 1px solid #e9ecef;
}

/* Modül Level (Yeşil) */
.acc-module {

    margin-bottom: 2px;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.acc-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 15px;
    background: #28a745;
    color: white;
    cursor: pointer;
    gap: 10px;
    font-weight: 500;
}

.acc-module-content {
    padding: 2px;
    border-top: 1px solid #e9ecef;
}

/* Personel Badge'leri - Modül başlığında */
.personnel-badges-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: 10px;
}

.personnel-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* Bölüm Level (Sarı) */
.acc-section {

    margin-bottom: 2px;
    background: white;

}

.acc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 12px;
    background: #ffc107;
    color: #212529;
    cursor: pointer;
    gap: 10px;
    font-weight: 500;
}

/* Tüm hedefler "evet" seçildiğinde yeşil arka plan */
.acc-section-header.all-yes {
    background: #28a745 !important;
    color: white;
}

/* Tüm hedefler "hayır" seçildiğinde kırmızı arka plan */
.acc-section-header.all-no {
    background: #dc3545 !important;
    color: white;
}

.acc-section-content {
    padding: 2px;
    border-top: 1px solid #e9ecef;
}

/* Hedef Level (Turkuaz) - TEK SATIRDA */
.acc-objective {

    margin-bottom: 8px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.acc-objective-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 10px;
    background: #17a2b8;
    color: #374151;
    cursor: pointer;
    gap: 10px;
    font-weight: 500;
    min-height: 40px;
}

/* HEDEF VE DAVRANIS BAŞLIKLARI - Program ile aynı font stili */
.acc-objective-header .acc-title,
.acc-behavior-title {
    flex: 1;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    min-width: 200px;
}

.acc-objective-header .acc-title {
    min-width: 200px;
}

/* UIKit uk-text-small override for hedef and davranis names */
.uk-text-small {
    font-size: 11px !important;
}

.acc-objective-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.acc-objective-controls .acc-evaluation {
    display: flex;
    gap: 8px;
    align-items: center;
}

.acc-objective-controls .acc-evaluation label {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    color: white;
}

.acc-objective-controls select,
.acc-objective-controls input[type="text"] {
    background: white;
    color: #212529;
    border: 1px solid #ddd;
}

.acc-objective-controls select {
    width: 50px;
    height: 26px;
    font-size: 0.75rem;
    padding: 2px 4px;
}

.acc-objective-controls input[type="text"] {
    width: 120px;
    height: 26px;
    font-size: 0.75rem;
    padding: 3px 6px;
}

.acc-objective-controls label:not(.acc-evaluation label) {
    font-size: 0.75rem;
    color: white;
    white-space: nowrap;
}

.acc-objective-content {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Davranış Level (Beyaz) */
.acc-behavior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 6px;
    border-radius: 3px;
    min-height: 35px;
}

.acc-behavior-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-behavior-icon {
    font-size: 12px;
    opacity: 0.7;
}

.acc-behavior-title {
    color: #495057;
}

/* Ortak Stiller */
.acc-toggle {
    color: inherit;
    font-weight: bold;
    transition: transform 0.2s ease;
    min-width: 14px;
    font-size: 1rem;
}

.acc-toggle.expanded {
    transform: rotate(90deg);
}

.acc-title {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
}

.acc-count {
    opacity: 0.8;
    font-size: 0.85rem;
    margin-left: 8px;
    font-weight: normal;
}

.acc-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.acc-evaluation {
    display: flex;
    gap: 8px;
    align-items: center;
}

.acc-evaluation label {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Form Kontrolleri */
.acc-controls select {
    width: 50px;
    height: 24px;
    font-size: 0.75rem;
    padding: 1px 3px;

}

.acc-controls input[type="text"] {
    width: 120px;
    height: 24px;
    font-size: 0.75rem;
    padding: 2px 6px;

}

.acc-controls label {
    font-size: 0.75rem;
    color: inherit;
    white-space: nowrap;
}

/* Container genel stilleri */
.bep-accordion-container {
    max-height: 70vh;
    overflow-y: auto;

}

/* Hedef accordion - Aynı bölüm sistemi gibi */
.objective-item {

    margin-bottom: 10px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.objective-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
}

.objective-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.objective-toggle {
    color: #007bff;
    font-weight: bold;
    transition: transform 0.2s ease;
    min-width: 12px;
}

.objective-toggle.expanded {
    transform: rotate(90deg);
}

.objective-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.objective-evaluation {
    display: flex;
    gap: 8px;
    align-items: center;
}

.objective-evaluation label {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Davranış container */
.behaviors-container {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: none;
}

/* Davranış item - Hedef sistemi gibi */
.behavior-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    background: white;
}

.behavior-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
}

.behavior-title {
    flex: 1;
    font-weight: 400;
    color: #495057;
    font-size: 0.85rem;
}

.behavior-controls {
    display: flex;
    align-items: center;
}

.behavior-evaluation {
    display: flex;
    gap: 10px;
    align-items: center;
}

.behavior-evaluation label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Hedef detayları (açıklama ve davranışlar) */
.objective-details {
    padding: 15px;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
}

.objective-notes {
    margin-bottom: 15px;
}

.objective-notes label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.objective-notes textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
}

/* Davranış listesi */
.behaviors-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.behavior-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    background: white;
}

.behavior-row:last-child {
    border-bottom: none;
}

.behavior-name {
    flex: 1;
    font-size: 0.9rem;
    color: #495057;
}

.behavior-evaluation {
    display: flex;
    gap: 15px;
    align-items: center;
}

.behavior-evaluation label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Evet/Hayır radio butonları hizalaması */
.objective-evaluation label span,
.behavior-evaluation label span {
    min-width: 40px;
    text-align: center;
}

.objective-evaluation input[type="radio"],
.behavior-evaluation input[type="radio"] {
    margin-right: 4px;
}

/* ===== YENİ: 3 SÜTUNLU FORM HEADER STİLLERİ ===== */

/* Enhanced Form Header - 3 Sütun Layout (ESKİ) */
.bep-form-header-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;

    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

/* Enhanced Form Header - 5 Sütun Layout (YENİ) */
.bep-form-header-5col {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 15px;
}

/* Header Columns */
.header-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-height: 120px;
}

/* Öğrenci Bilgisi Sütunu */
.header-student-info {
    border-left: 4px solid #28a745;
}

.header-student-info h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.header-student-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Toplu Seçim Sütunu */
.header-bulk-controls {
    border-left: 4px solid #007bff;
    text-align: center;
}

.header-bulk-controls h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.bulk-scope-selector {
    margin-bottom: 12px;
}

.bulk-scope-selector select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.85rem;
    background: white;
}

.bulk-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bulk-btn-yes {
    background: linear-gradient(45deg, #28a745, #34ce57) !important;
    color: white !important;
    border: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.bulk-btn-yes:hover {
    background: linear-gradient(45deg, #218838, #28a745) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3) !important;
}

.bulk-btn-no {
    background: linear-gradient(45deg, #dc3545, #e74c3c) !important;
    color: white !important;
    border: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.bulk-btn-no:hover {
    background: linear-gradient(45deg, #c82333, #dc3545) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

/* Yardımcı Araçlar Sütunu */
.header-utility-controls {
    border-left: 4px solid #ffc107;
    text-align: center;
}

.header-utility-controls h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.utility-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.utility-btn {
    background: linear-gradient(45deg, #6c757d, #8a929b) !important;
    color: white !important;
    border: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.utility-btn:hover {
    background: linear-gradient(45deg, #5a6268, #6c757d) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3) !important;
}

/* Responsive Design - Mobil uyumluluk */
@media (max-width: 768px) {
    .bep-form-header-enhanced,
    .bep-form-header-5col {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .header-column {
        min-height: auto;
        padding: 12px;
    }

    .bulk-buttons,
    .utility-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .bulk-btn-yes,
    .bulk-btn-no,
    .utility-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .bulk-buttons,
    .utility-buttons {
        flex-direction: column;
    }

    .bulk-btn-yes,
    .bulk-btn-no,
    .utility-btn {
        width: 100%;
    }
}
/* Performans Sütunu */
.header-performance {
    border-left: 4px solid #ffc107;
}

.header-performance h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.header-performance .info-display {
    padding: 10px;
    background: #fff9e6;
    border: 1px solid #ffe680;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
    flex: 1;
    overflow-y: auto;
}

/* Yıllık Amaç Sütunu */
.header-annual-goal {
    border-left: 4px solid #17a2b8;
}

.header-annual-goal h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.header-annual-goal .info-display {
    padding: 10px;
    background: #e7f6f8;
    border: 1px solid #b8e8ed;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #0c5460;
    line-height: 1.5;
    flex: 1;
    overflow-y: auto;
}
