/* Student Page Specific Styles - inherits from theme.css and styles.css */

/* Characterization Section - Enhanced Dropdown */
.class-characterization-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #C15A16;
}

.characterization-content {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: rtl;
}

.characterization-content label {
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
    min-width: 100px;
    white-space: nowrap;
}

#characterizationSelect {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
    min-width: 200px;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-left: 12px;
    padding-right: 35px;
}

#characterizationSelect:focus {
    border-color: #C15A16;
    box-shadow: 0 0 0 2px rgba(193, 90, 22, 0.2);
    outline: none;
}

#characterizationSelect:hover {
    border-color: #C15A16;
    background-color: #fafafa;
}

#characterizationSelect option {
    padding: 8px;
    font-size: 1em;
    direction: rtl;
    text-align: right;
}

.characterization-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

/* Responsive characterization */
@media (max-width: 768px) {
    .characterization-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .characterization-content label {
        min-width: auto;
        font-size: 1.1em;
    }
    
    .characterization-content select {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .characterization-display {
        margin-right: 0;
        align-self: flex-start;
    }
}

/* Student Page Table Sections */
.students-table-section,
.documents-table-section {
    margin-top: 30px;
}

.students-table-section h3,
.documents-table-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

/* Document Level Badges - ONLY document-specific (not in other tables) */
.level-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    min-width: 70px;
    text-align: center;
    display: inline-block;
}

.level-אישי {
    background-color: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

.level-בית-ספר {
    background-color: #fff3e0;
    color: #ef6c00;
    border-color: #ffb74d;
}

.level-רשת {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

/* Document-specific status badges (different from global student status) */
.status-לא-התחיל {
    background-color: #ffebee;
    color: #c62828;
    border-color: #ef5350;
}

.status-נשלח {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #66bb6a;
}

/* Note: All other styles (.action-icon-natural, .btn-icon, .status-מוכן, .status-בטיפול, etc.) 
   inherit from global styles.css - NO container-specific overrides */

/* Upload Modal Styles - inheriting from theme.css */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    direction: rtl;
}

.modal-content {
    background-color: var(--background-color, #fefefe);
    margin: 10% auto;
    padding: var(--spacing-lg, 20px);
    border: 1px solid var(--border-color, #888);
    border-radius: var(--border-radius, 8px);
    width: 500px;
    max-width: 90%;
    direction: rtl;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: var(--spacing-md, 15px);
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs, 5px);
    font-weight: bold;
}

.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm, 8px);
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--border-radius, 4px);
    font-family: inherit;
    direction: rtl;
}

.upload-status {
    padding: var(--spacing-sm, 10px);
    margin: var(--spacing-sm, 10px) 0;
    border-radius: var(--border-radius, 4px);
    white-space: pre-line;
    text-align: right;
}

.upload-status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm, 10px);
    justify-content: flex-start;
    margin-top: var(--spacing-lg, 20px);
    direction: rtl;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}