.reporter-attendance-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    color: #333;
}

.reporter-attendance-container h3 {
    color: #333;
}

.reporter-attendance-container .select-wrapper {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

/* הסתרת ה-select המקורי */
.reporter-attendance-container .select-wrapper select {
    display: none;
}

/* עיצוב הכפתור המותאם אישית */
.reporter-attendance-container .custom-select-button {
    width: 100%;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #F4F6F3;
    text-align: right;
    cursor: pointer;
    position: relative;
    font-size: 16px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* צבע מיוחד לפלייסהולדר */
.reporter-attendance-container .custom-select-button.placeholder {
    color: #b41e03;
}

/* חץ למטה */
.reporter-attendance-container .custom-select-button::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-right: auto;
    margin-left: 16px;
}

/* רשימת האפשרויות */
.reporter-attendance-container .select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: -1px;
    width: 100%;
}

.reporter-attendance-container .select-option {
    padding: 12px;
    cursor: pointer;
    text-align: center;
    color: #333;
    transition: all 0.2s ease;
}

.reporter-attendance-container .select-option[data-value=""] {
    color: #b41e03;
}

.reporter-attendance-container .select-option:nth-child(even) {
    background-color: #eef2f7;
}

.reporter-attendance-container .select-option:hover {
    color: #b41e03;
}

.reporter-attendance-container .select-option.selected {
    color: #b41e03;
    background-color: white;
}

/* מצב פתוח */
.reporter-attendance-container .select-wrapper.open .custom-select-button {
    border-radius: 20px 20px 0 0;
}

.reporter-attendance-container .select-wrapper.open .select-options {
    display: block;
}

/* גלילה מותאמת אישית */
.reporter-attendance-container .select-options::-webkit-scrollbar {
    width: 8px;
}

.reporter-attendance-container .select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 20px 0;
}

.reporter-attendance-container .select-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.reporter-attendance-container .select-options::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* הסתרת החץ הדיפולטיבי בדפדפנים שונים */
.reporter-attendance-container select::-ms-expand {
    display: none;
}

/* הסרת הרקע הכחול מהאופציה הנבחרת */
.reporter-attendance-container select option:checked,
.reporter-attendance-container select option:selected {
    background-color: white !important;
    color: #b41e03 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* הסרת הרקע הכחול במצב hover */
.reporter-attendance-container select option:hover {
    background-color: #eef2f7 !important;
    color: #b41e03 !important;
}

/* עיצוב ספציפי לאופציה הראשונה (placeholder) */
.reporter-attendance-container select option[value=""] {
    color: #b41e03;
}

/* עיצוב שורות לסירוגין עם קונטרסט משופר */
.reporter-attendance-container select option:nth-child(even) {
    background-color: #eef2f7;
}

.reporter-attendance-container select option:nth-child(odd) {
    background-color: white;
}

/* תיקון עיצוב הרשימה הנפתחת בדפדפנים שונים */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .reporter-attendance-container select {
        border-radius: 20px;
    }
    
    .reporter-attendance-container select:focus {
        border-radius: 20px 20px 0 0;
    }
}

/* תיקון ספציפי לפיירפוקס */
@-moz-document url-prefix() {
    .reporter-attendance-container select {
        border-radius: 20px;
        text-indent: 0;
        text-align: center;
    }
    
    .reporter-attendance-container select:focus {
        border-radius: 20px 20px 0 0;
    }
    
    .reporter-attendance-container select option:checked,
    .reporter-attendance-container select option:selected {
        background-color: white !important;
        color: #b41e03 !important;
        box-shadow: none !important;
    }
}

/* תיקון לכל הדפדפנים */
.reporter-attendance-container select,
.reporter-attendance-container select option {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
}

/* הוספת צל עדין לתיבה הנפתחת */
.reporter-attendance-container select:focus {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#students-container{
    border: 1px solid #D6D6D6;
    border-radius: 20px;
    overflow: hidden;
}

.students-list {
    margin-top: 20px;
}

.student-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.student-name-title{
    font-size: 18px !important;
    color: #000000 !important;
}

.student-name {
    flex: 1;
}

.attendance-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.attendance-icon {
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
}


/* ################################# */

.activities-section h3,
.lessons-section h3,
.students-list h3{
    font-size: 1.2em !important;
    font-weight: bold !important;
    color: #b41e03 !important;
}

/* ################################# */

/* הגדרות בסיס לכל האייקונים */
.icon-present, .icon-absent, .icon-note {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* מצב לא פעיל - שימוש באייקון הלבן */
.icon-present:not(.active) {
    background-image: url('../images/present-false.svg');
}

.icon-absent:not(.active) {
    background-image: url('../images/absent-false.svg');
}

/* הגדרות למצב פעיל */
.icon-present.active {
    background-image: url('../images/present-true.svg');
}

.icon-absent.active {
    background-image: url('../images/absent-true.svg');
}

/* הגדרות hover */
.icon-present:hover:not(.active) {
    background-image: url('../images/present-true.svg');
}

.icon-absent:hover:not(.active) {
    background-image: url('../images/absent-true.svg');
}

/* אייקון הערה */
.icon-note {
    cursor: pointer;
    margin-right: 20px;
    position: relative;
    background-image: url('../images/note-inactive.svg');
}

/* אייקון הערה פעיל */
.icon-note.has-note {
    background-image: url('../images/note-active.svg');
}

/* אייקון הערה במצב הובר */
.icon-note:hover {
    background-image: url('../images/note-active.svg');
}

/* מסתיר את האייקון המקורי */
.icon-note i {
    display: none;
}

.active {
    background-color: currentColor;
    color: white;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.user-greeting {
    margin-bottom: 20px;
}

.user-greeting h2 {
    color: #333;
    font-size: 24px;
    margin: 0 0 20px 0;
}

.students-count {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #333;
}

.total-students {
    font-weight: bold;
}

.attendance-stats {
    display: flex;
    gap: 20px;
}

.stat-present {
    color: #172909;
    font-weight: bold;
}

.stat-absent {
    color: #90041B;
    font-weight: bold;
}

.no-students-message {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #666;
}

@media screen and (max-width: 480px) {
    .student-item {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    
    .student-name {
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: bold;
    }
    
    .attendance-icons {
        gap: 30px;
        justify-content: center;
    }

    .icon-note {
        margin-right: 20px;
        position: relative;
    }

    .icon-note::before {
        right: -25px;
    }

    .attendance-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .icon-note i {
        font-size: 24px;
    }

    /* התאמת הטולטיפ למובייל */
    .icon-note.has-note:after {
        font-size: 10px;
        padding: 3px 8px;
        white-space: normal;
        width: 120px;
        max-width: 120px;
        max-height: 60px;
        text-align: center;
        bottom: 120%;
    }
}

/* שורות לסירוגין ברשימת התלמידים */
.student-item:nth-child(odd) {
    background-color: #f8f9fa;
}

/* הוספת סגנונות לאנימציית טעינה */
.loading-indicator {
    margin: 20px 0;
    text-align: center;
    color: #666;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-indicator span {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* שורת תאריך ושעת דיווח */
.report-timestamp {
    margin-top: 30px;
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

@media screen and (max-width: 480px) {
    .report-timestamp {
        margin-top: 20px;
        padding: 10px;
    }
}

/* עיצוב פופאפ הערה */
.note-dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5);
    display: none !important;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
}

.note-dialog.visible {
    display: flex !important;
}

.note-dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    direction: rtl;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: auto;
}

.note-dialog h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.note-dialog textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.note-dialog-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.main-buttons {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
}

.delete-note {
    background-color: #969696 !important;
    color: white !important;
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    cursor: pointer;
    font-size: 14px !important;
}

.delete-note:hover {
    background-color: #555 !important;
}

.note-dialog button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.note-dialog .save-note {
    background-color: #3498db !important;
    color: white;
    font-size: 14px !important;
}

.note-dialog .cancel-note {
    background-color: #969696 !important;
    color: white;
    font-size: 14px !important;
}

/* התאמה למסך קטן */
@media screen and (max-width: 480px) {
    .note-dialog-content {
        width: 95%;
        padding: 15px;
    }
}

/* עיצוב פופאפ סיבת העדרות */
.absence-reason-dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5);
    display: none !important;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
}

.absence-reason-dialog.visible {
    display: flex !important;
}

.absence-reason-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    direction: rtl;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.absence-reason-content h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.absence-reasons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.absence-reason-btn {
    background: none;
    border: 2px solid #666;
    border-radius: 20px;
    padding: 8px 16px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.absence-reason-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.absence-reason-btn.selected {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.absence-reason-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.absence-reason-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.absence-reason-buttons .save-reason {
    background-color: #172909;
    color: white;
}

.absence-reason-buttons .cancel-reason {
    background-color: #90041B;
    color: white;
}

.nahuga-absence-reason-btn {
    background: none !important;
    border: 1px solid #666 !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    color: #000000 !important;
    cursor: pointer;
    font-size: 14px !important;
    background-color: #F4F6F3 !important;
}

.nahuga-absence-reason-btn:hover {
    border-color: #90041B !important;
    color: #90041B !important;
}

.nahuga-absence-reason-btn.selected {
    background-color: #90041B !important;
    border-color: #90041B !important;
    color: white !important;
}

.nahuga-cancel-reason {
    background-color: #969696 !important;
    color: white !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    cursor: pointer;
}

/* עיצוב פופאפ ספירה לאחור */
.countdown-dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5);
    display: none !important;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
}

.countdown-dialog.visible {
    display: flex !important;
}

.countdown-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    direction: rtl;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.countdown-timer {
    font-size: 48px;
    font-weight: bold;
    color: #3498db;
    margin: 20px 0;
}

.countdown-message {
    margin-bottom: 20px;
    color: #666;
}

.nahuga-cancel-submit {
    background-color: #333 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    cursor: pointer;
}

/* עיצוב פופאפ הודעה */
.message-dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5);
    display: none !important;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
}

.message-dialog.visible {
    display: flex !important;
}

.message-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    direction: rtl;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.message-text {
    font-size: 18px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
}

.message-text.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.message-text.error {
    background-color: #ffebee;
    color: #c62828;
}

.nahuga-message-ok {
    background-color: #3498db !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    cursor: pointer;
    font-size: 16px !important;
}

/* עיצוב פופאפ דיווחים קודמים */
.previous-reports-dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5);
    display: none !important;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
}

.previous-reports-dialog.visible {
    display: flex !important;
}

.previous-reports-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    direction: rtl;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.previous-reports-content h4 {
    color: #90041B;
    margin-bottom: 20px;
    font-size: 20px;
}

.previous-reports-list {
    margin: 15px 0;
}

.report-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.report-item.last-report {
    border-bottom: 2px solid #e3e3e3;
    margin-bottom: 10px;
    font-size: 1em !important;
}

/* הוספת מרווח בין הדיווחים */
.report-item:not(:last-child) {
    margin-bottom: 5px;
}

.reports-found-today {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.previous-reports-question {
    margin: 20px 0;
    font-weight: bold;
}

.previous-reports-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.previous-reports-buttons button {
    padding: 10px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 16px !important;
    width: 100%;
}

.nahuga-load-last-report {
    background-color: #172909 !important;
    color: white !important;
}

.nahuga-start-new-report {
    background-color: #3498db !important;
    color: white !important;
}

.nahuga-cancel-report {
    background-color: #666 !important;
    color: white !important;
}

/* עיצוב התצוגה המצומצמת */
.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e3f2fd;  /* תכלת עדין */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.compact-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.expand-view-btn {
    background: none !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.expand-view-btn:hover {
    color: #333;
}

.expand-view-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.expand-view-btn img {
    width: 20px;
}

/* עיצוב כפתור תצוגה מצומצמת */
.compact-view-btn {
    background: none !important;
    border: 1px solid #969696 !important;
    padding: 8px 12px !important;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    float: left;  /* הזזת הכפתור לצד שמאל */
}

.compact-view-btn:hover {
    background-color: #f8f9fa !important;
    color: #333;
}

.compact-view-btn i {
    font-size: 16px;
    margin-left: 8px;
}

/* עדכון margin לאזור השיעורים */
.lessons-section {
    margin-bottom: 10px;
}

/* סגנונות לכפתורי הפעולה */
.action-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    padding: 0 20px;
}

/* סגנונות לכפתור הערה כללית */
.reporter-attendance-container .nahuga-general-note-btn {
    background: none !important;
    border: 2px solid #666 !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    color: #666 !important;
    cursor: pointer;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

/* סגנון כפתור הערה כללית במצב פעיל */
.reporter-attendance-container .nahuga-general-note-btn.has-note {
    background-color:#AED6F1 !important;
    border-color: #AED6F1 !important;
    color: #3498db !important;
}

.reporter-attendance-container .nahuga-general-note-btn i {
    font-size: 16px !important;
    transition: color 0.3s ease;
}

/* סגנון האייקון בכפתור הערה כללית במצב פעיל */
.reporter-attendance-container .nahuga-general-note-btn.has-note i {
    color: white !important;
}

/* סגנונות לכפתור שליחת דיווח */
.reporter-attendance-container .submit-report-btn {
    background-color: #3498db !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 8px 25px !important;
    color: white !important;
    cursor: pointer;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.admin-notice {
    background-color: #f0f8ff;
    border-right: 3px solid #4d90fe;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 14px;
    color: #333;
    border-radius: 3px;
}

/* עיצוב סטטיסטיקת נוכחות מעודכן */
.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    padding: 5px 10px;
    flex: 1;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: #ccc;
    flex: 0 0 1px;
}

.stat-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.stat-item:first-child {
    color: #333;
}

.stat-item:nth-child(3) {
    color: #172909;
}

.stat-item:nth-child(5) {
    color: #90041B;
}

@media screen and (max-width: 480px) {
    .stats-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-divider {
        width: 80%;
        height: 1px;
    }
} 