/* BEP Edit Modal - Compact Accordion System */

/* Seçim özeti alanı - MİNİMİZE EDİLDİ */
.education-selection-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.selection-summary-grid {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.summary-item {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.summary-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.65rem;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 0.7rem;
    color: #007bff;
    font-weight: 700;
    padding: 1px 4px;
    background: white;
    border-radius: 2px;
    border: 1px solid #e9ecef;
    display: inline-block;
    min-width: 40px;
}

/* Reset butonu da minimize */
.summary-reset {
    flex-shrink: 0;
    margin-left: 8px;
}

.summary-reset button {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
    border-radius: 3px !important;
    line-height: 1.2 !important;
    min-height: 20px !important;
}

/* Edit Accordion Container - Optimize edildi */
#edit-accordion-container {
    max-height: 65vh;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
    padding: 10px;
}

/* Program kartları - DAHA KOMPAKT */
.edit-program-card {
    border: 1px solid #007bff;
    border-radius: 6px;
    margin-bottom: 10px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.edit-program-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #007bff;
    color: white;
    cursor: pointer;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.edit-program-header:hover {
    background: #0056b3;
}

.edit-program-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.edit-program-toggle {
    color: white;
    font-size: 1rem;
    transition: transform 0.2s ease;
    min-width: 12px;
    font-weight: bold;
}

.edit-program-toggle.expanded {
    transform: rotate(90deg);
}

/* Modül konteyneri */
.edit-modules-container {
    display: none;
    padding: 0;
    background: #f8f9fa;
}

.edit-modules-container.expanded {
    display: block;
}

/* Modül kartları - DAHA KOMPAKT */
.edit-module-card {
    border: 1px solid #6f42c1;
    border-radius: 4px;
    margin: 8px;
    background: white;
    overflow: hidden;
}

.edit-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #6f42c1;
    color: white;
    cursor: pointer;
    gap: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.edit-module-header:hover {
    background: #5a2d91;
}

.edit-module-title {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.edit-module-toggle {
    color: white;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    min-width: 10px;
    font-weight: bold;
}

.edit-module-toggle.expanded {
    transform: rotate(90deg);
}

/* Bölüm konteyneri */
.edit-sections-container {
    display: none;
    padding: 0;
    background: #fff8e1;
}

.edit-sections-container.expanded {
    display: block;
}

/* Bölüm öğeleri - EN KOMPAKT */
.edit-section-item {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    transition: background-color 0.2s ease;
}

.edit-section-item:last-child {
    border-bottom: none;
}

.edit-section-item:hover {
    background: #f8f9fa;
}

.edit-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #495057;
    cursor: pointer;
}

.edit-section-title input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Checkbox styling - daha küçük */
.edit-program-card input[type="checkbox"],
.edit-module-card input[type="checkbox"],
.edit-section-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    cursor: pointer;
}

/* Loading states */
.loading-text {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Error states */
.uk-text-danger {
    color: #dc3545 !important;
}

/* Scrollbar styling */
#edit-accordion-container::-webkit-scrollbar {
    width: 6px;
}

#edit-accordion-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#edit-accordion-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#edit-accordion-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive - mobil için daha da kompakt */
@media (max-width: 768px) {
    .education-selection-summary {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .summary-label {
        font-size: 0.6rem;
    }
    
    .summary-value {
        font-size: 0.65rem;
        padding: 1px 3px;
    }
    
    .edit-program-header,
    .edit-module-header {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .edit-section-item {
        padding: 4px 6px;
    }
    
    .edit-section-title {
        font-size: 0.75rem;
    }
}

/* Animation for smooth expand/collapse */
.edit-modules-container,
.edit-sections-container {
    transition: all 0.3s ease;
}

/* Compact spacing for entire accordion */
#edit-accordion-container .loading-text {
    padding: 10px;
    font-size: 0.85rem;
}

/* Ensure proper click handling */
.edit-program-header,
.edit-module-header,
.edit-section-title {
    user-select: none;
}

/* Prevent checkbox clicks from bubbling */
.edit-program-title input[type="checkbox"],
.edit-module-title input[type="checkbox"],
.edit-section-title input[type="checkbox"] {
    pointer-events: auto;
}

/* ===== Hedef Column Headers - Inside Section ===== */
.hedef-column-headers {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    gap: 8px;
}

.col-header {
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.65rem;
    text-align: center;
}

.col-header.col-tarih { width: 100px; }
.col-header.col-yontem { width: 140px; }
.col-header.col-arac { width: 140px; }
.col-header.col-sorumlu { width: 120px; }

.col-header.col-hedef-bulk {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.col-hedef-bulk span {
    font-weight: 600;
    color: #475569;
    font-size: 0.7rem;
}

.col-hedef-bulk .bulk-evet-btn,
.col-hedef-bulk .bulk-hayir-btn {
    padding: 3px 10px;
    border: none;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.col-hedef-bulk .bulk-evet-btn {
    background: #22c55e;
    color: white;
}

.col-hedef-bulk .bulk-evet-btn:hover {
    background: #16a34a;
}

.col-hedef-bulk .bulk-hayir-btn {
    background: #ef4444;
    color: white;
}

.col-hedef-bulk .bulk-hayir-btn:hover {
    background: #dc2626;
}

/* ===== Hedef Extra Fields - No Labels ===== */
.hedef-extra-fields {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 10px;
}

.hedef-input {
    font-size: 0.75rem !important;
    padding: 2px 4px !important;
}

.hedef-input.hedef-tarih {
    width: 100px;
    height: 26px;
}

.hedef-input.hedef-yontem,
.hedef-input.hedef-arac {
    width: 140px;
    height: 40px;
    resize: none;
}

.hedef-input.hedef-sorumlu-select {
    width: 120px;
    height: 28px;
    appearance: menulist;
}

/* ===== BEP Sıra Select Fix ===== */
.bep-sira-select {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 60px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
    padding: 2px 4px !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    background-color: white !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

/* ===== Sorumlu Select Fix ===== */
.hedef-sorumlu-select {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 120px !important;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    background-color: white !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

/* ===== Acc Controls Visibility ===== */
.acc-controls {
    display: flex !important;
    visibility: visible !important;
    align-items: center;
    gap: 8px;
}

.acc-controls label,
.acc-controls select {
    display: inline-block !important;
    visibility: visible !important;
}