.shorashim-dashboard-container {
    max-width: 1400px;
    /* הגדלנו עבור עמודות נוספות */
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    direction: rtl;
}

.shorashim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.shorashim-header h1 {
    font-size: 28px;
    color: #1d2327;
    margin: 0;
}

.instructions-btn {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.shorashim-filters {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dcdcde;
}

.shorashim-filters form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.shorashim-filters select,
.shorashim-filters input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.filter-btn,
.reset-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid;
}

.filter-btn {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.reset-btn {
    background: #f6f7f7;
    color: #1d2327;
    border-color: #dcdcde;
}

.shorashim-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    overflow-x: auto;
    /* גלילה אופקית לטבלה רחבה */
}

.shorashim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    /* הקטנו מעט כדי להכיל יותר עמודות */
    min-width: 1200px;
    /* רוחב מינימלי */
}

.shorashim-table th {
    background: #f6f7f7;
    padding: 10px 8px;
    /* הקטנו padding */
    text-align: right;
    font-weight: 600;
    border-bottom: 1px solid #dcdcde;
    color: #1d2327;
    white-space: nowrap;
}

.shorashim-table td {
    padding: 12px 8px;
    /* הקטנו padding */
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.shorashim-table tr:hover {
    background: #f6f7f7;
}

.grade-badge {
    background: #00a32a;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.no-grade {
    color: #8c8f94;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-בעבודה {
    background: #fcf9e8;
    color: #8a6914;
    border: 1px solid #f0e68c;
}

.status-הגשה {
    background: #edfaef;
    color: #00a32a;
    border: 1px solid #00a32a20;
}

.status-לא-מוגדר {
    background: #f0f0f1;
    color: #646970;
    border: 1px solid #dcdcde;
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f0f0f1;
    border-radius: 4px;
    overflow: hidden;
    min-width: 60px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a32a, #4caf50);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-weight: 600;
    color: #1d2327;
    min-width: 25px;
    font-size: 11px;
}

.student-cell strong {
    display: block;
    color: #1d2327;
    margin-bottom: 2px;
    font-size: 13px;
}

.student-meta {
    font-size: 11px;
    color: #646970;
}

.action-btn {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid;
    cursor: pointer;
    font-size: 11px;
    margin-left: 3px;
    text-decoration: none;
    display: inline-block;
}

.view-btn {
    background: #f6f7f7;
    color: #1d2327;
    border-color: #dcdcde;
}

.grade-btn {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.edit-grade-btn {
    background: #dba617;
    color: white;
    border-color: #dba617;
}

.action-btn:hover {
    opacity: 0.8;
}

/* סגנונות חדשים לשיתוף וצפיות */
.sharing-cell {
    text-align: center;
}

.sharing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.sharing-active {
    color: #00a32a;
    font-weight: 600;
}

.sharing-inactive {
    color: #8c8f94;
}

.view-count {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 25px;
    display: inline-block;
    text-align: center;
}

.view-count.zero {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* מודל עדכון סטטוס */
.status-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.status-modal-content {
    background: white;
    margin: 15% auto;
    border-radius: 8px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.status-modal-header {
    padding: 20px;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-modal-body {
    padding: 20px;
}

.status-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-option {
    padding: 12px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.status-option:hover {
    background: #f6f7f7;
}

.status-option.selected {
    border-color: #2271b1;
    background: #e3f2fd;
    color: #1565c0;
}

.shorashim-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: #1d2327;
}

.page-btn.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 8px;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content.large {
    width: 800px;
    height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1d2327;
}

.close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #646970;
}

.close:hover {
    color: #1d2327;
}

.modal-body {
    padding: 20px;
}

.student-info {
    background: #f6f7f7;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1d2327;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.submit-btn {
    background: #00a32a;
    color: white;
    border: 1px solid #00a32a;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-btn {
    background: #f6f7f7;
    color: #1d2327;
    border: 1px solid #dcdcde;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #646970;
    font-style: italic;
}

.user-info-header {
    background: #2271b1;
    color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}
.user-info-header a {
    color: white; 
}

@media (max-width: 768px) {
    .shorashim-table-container {
        overflow-x: auto;
    }

    .shorashim-filters form {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-content {
        width: 95vw;
        margin: 10% auto;
    }

    .shorashim-table th,
    .shorashim-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
}

/* ===================================================
   הוסף לקובץ teacher.css
   =================================================== */

/* כפתור הורה */
.guardian-btn {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.guardian-btn:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.guardian-btn i {
    margin-left: 4px;
}