/* =========================================
   1. בסיס הכרטיס והרשימה
========================================= */
.mt-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mt-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0; /* מסגרת עדינה */
    direction: rtl;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* כותרות */
.mt-title {
    font-size: 22px; /* הגדלתי מעט */
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
}

.mt-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 500;
}

/* שורת מרצה */
.mt-lecturer-line {
    font-size: 14px;
    color: #555;
    background: #f8f9fa;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* תאריך */
.mt-date {
    background: #edf2f7;
    color: #2d3748;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-top: 8px;
}

/* =========================================
   2. כפתורי הפעולה בכרטיס (Action Buttons)
========================================= */
.mt-actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* חלוקה שווה ל-3 */
    gap: 10px;
}

.action-btn {
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 12px 0; /* גובה נוח ללחיצה */
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-btn:active {
    transform: scale(0.98);
}

/* צבעים */
.mt-report-btn { background: linear-gradient(135deg, #28a745, #20c997); }
.mt-report-btn:hover:not(:disabled) { box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3); }

.mt-reschedule-btn { 
    background: linear-gradient(135deg, #ffc107, #fd7e14); 
    color: #fff !important; 
}
.mt-reschedule-btn:hover:not(:disabled) { box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3); }

.mt-cancel-btn { background: linear-gradient(135deg, #dc3545, #e02a4e); }
.mt-cancel-btn:hover:not(:disabled) { box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3); }

.action-btn:disabled {
    background: #e9ecef;
    color: #adb5bd !important;
    box-shadow: none;
    cursor: default;
}

/* סטטוסים לאחר ביצוע */
.mt-card.mt-reported { border-right: 6px solid #28a745; background: #f4fff6; }
.mt-card.mt-rescheduled { border-right: 6px solid #ffc107; background: #fffdf5; }
.mt-card.mt-canceled { border-right: 6px solid #dc3545; background: #fff5f5; }


/* =========================================
   3. עיצוב הפופאפ (SweetAlert2) - החלק החשוב
========================================= */

/* קונטיינר כללי של הפופאפ */
div.swal2-popup {
    border-radius: 24px !important;
    padding: 30px 25px !important;
    font-family: inherit !important;
    width: 100% !important;
    max-width: 450px !important; /* שלא יהיה רחב מידי בדסקטופ */
}

/* כותרת */
h2.swal2-title {
    font-size: 24px !important;
    color: #333 !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
}

/* שדות קלט - עיצוב מודרני וגדול */
.swal2-input, 
.swal2-select, 
.swal2-textarea {
    margin: 10px auto 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-size: 16px !important;
    color: #2d3748 !important;
    padding: 0 16px !important;
    height: 50px !important; /* גובה נוח לאצבע */
    box-shadow: none !important;
    transition: border-color 0.2s !important;
}

.swal2-textarea {
    height: 120px !important;
    padding: 16px !important;
    resize: none !important;
}

/* פוקוס על שדות */
.swal2-input:focus, 
.swal2-select:focus, 
.swal2-textarea:focus {
    border-color: #c2185b !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.1) !important;
    outline: none !important;
}

/* תוויות מעל השדות */
.swal2-content label, 
.popup-field-label {
    display: block;
    text-align: right;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    font-size: 14px;
}

/* אזור הכפתורים בפופאפ */
.swal2-actions {
    width: 100% !important;
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: row-reverse !important; /* אישור בימין, ביטול בשמאל */
    gap: 12px !important;
    justify-content: space-between !important;
}

/* כפתור אישור/שליחה */
button.swal2-confirm {
    flex: 1 !important; /* תופס חצי רוחב */
    background-color: #c2185b !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(194, 24, 91, 0.25) !important;
}

/* כפתור ביטול */
button.swal2-cancel {
    flex: 1 !important; /* תופס חצי רוחב */
    background-color: #fff !important;
    color: #718096 !important;
    border: 2px solid #edf2f7 !important; /* מסגרת אפורה עדינה */
    border-radius: 12px !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

button.swal2-cancel:hover {
    background-color: #f7fafc !important;
    border-color: #cbd5e0 !important;
    color: #4a5568 !important;
}

/* הסתרת הודעות שגיאה דיפולטיביות כדי שנוכל לעצב אותן יפה אם צריך */
.swal2-validation-message {
    background: #fff5f5 !important;
    color: #c53030 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin-top: 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* =========================================
   4. התאמות למובייל (Mobile First)
========================================= */
@media (max-width: 600px) {
    .mt-actions {
        /* במובייל הכפתורים יהיו גדולים יותר אבל עדיין בשורה אחת, או שאפשר לשנות */
        gap: 8px;
    }
    
    .action-btn {
        font-size: 13px;
        padding: 10px 0;
    }

    div.swal2-popup {
        padding: 20px !important;
        margin: 10px !important; 
        max-width: 95% !important;
    }
}
/* =========================================
   כפתור צף (FAB) לדיווח ידני
========================================= */
.mt-fab {
    position: fixed;
    bottom: 30px;
    left: 30px; /* בצד שמאל למטה, נוח לאגודל בממשק עברית */
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 50px; /* אליפסה/עיגול */
    padding: 12px 24px;
    box-shadow: 0 4px 14px rgba(0, 115, 170, 0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
}

.mt-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.5);
    background: #006394;
}

.mt-fab-icon {
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

.mt-fab-text {
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .mt-fab {
        bottom: 20px;
        left: 20px;
        padding: 10px 20px;
    }
    .mt-fab-text {
        font-size: 15px;
    }
}
/* Container */
.mt-container {
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 800px; /* צר יותר לקריאות */
    margin: 0 auto;
    padding: 10px;
    padding-bottom: 80px; /* מקום לכפתור צף */
}

/* Header */
.mt-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.mt-welcome { font-weight: 700; font-size: 18px; color: #333; }
.mt-last-update { font-size: 12px; color: #888; }

/* Tabs Navigation */
.mt-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #eef2f5;
    padding: 5px;
    border-radius: 12px;
}

.mt-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
    font-size: 15px;
}

.mt-tab-btn.active {
    background: #fff;
    color: #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Tab Content */
.mt-tab-content { display: none; animation: fadeIn 0.3s ease; }
.mt-tab-content.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }

/* Cards Base */
.mt-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    position: relative;
    transition: transform 0.2s;
}

.mt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mt-date-badge {
    background: #f0f2f5;
    color: #555;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}

.mt-status-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

/* History Colors */
.mt-card.mt-reported .mt-status-badge { background: #d4edda; color: #155724; }
.mt-card.mt-rescheduled .mt-status-badge { background: #fff3cd; color: #856404; }
.mt-card.mt-canceled .mt-status-badge { background: #f8d7da; color: #721c24; }

/* History Card Style (Greyscale background) */
.mt-card.mt-reported, .mt-card.mt-rescheduled, .mt-card.mt-canceled {
    background: #fafafa;
    border-color: #eee;
}

.mt-title { font-size: 18px; font-weight: 700; color: #2c3e50; margin-bottom: 4px; }
.mt-subtitle { font-size: 15px; color: #7f8c8d; margin-bottom: 8px; }
.mt-lecturer-line { font-size: 13px; color: #999; }

/* Actions */
.mt-actions {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.action-btn {
    border: none;
    color: #fff;
    padding: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
.mt-report-btn { background: #28a745; }
.mt-reschedule-btn { background: #ffc107; color:#333; }
.mt-cancel-btn { background: #dc3545; }

/* Help Box */
.mt-help-box {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    line-height: 1.6;
    color: #444;
}
.mt-help-box h3 { margin-top: 0; color: #0073aa; }
.mt-help-box ul { padding-right: 20px; }
.mt-help-box li { margin-bottom: 10px; }

.mt-video-placeholder {
    background: #000;
    color: #fff;
    height: 180px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    opacity: 0.8;
}
.video-icon { font-size: 40px; margin-bottom: 10px; }

/* Floating Button (FAB) */
.mt-fab {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.4);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}
.mt-fab:hover { transform: scale(1.05); }
.mt-fab-icon { font-size: 24px; line-height: 1; }
.mt-fab-text { font-size: 15px; font-weight: 700; }

.mt-empty { text-align: center; padding: 50px; color: #999; font-size: 16px; background:#fff; border-radius:12px; }

@media (max-width: 600px) {
    .mt-header-main { flex-direction: column; align-items: flex-start; gap: 5px; }
    .mt-tabs { overflow-x: auto; white-space: nowrap; }
}