/* ================== /whatsapp_system/css/footer.css ================== */
/* עיצוב פוטר קבוע וכפתור נגישות צף למערכת */

/* עיצוב כללי */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    direction: rtl;
    background-color: #f6f8fa;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* מבטיח שהגוף תופס לפחות את כל גובה המסך */
}

.container {
    flex: 1 0 auto; /* התוכן הראשי תופס את המרחב הנדרש */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 150px; /* padding-bottom גדול כדי למנוע חפיפה עם הפוטר */
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #1b4b72;
    margin-bottom: 20px;
}

.last-updated {
    margin-bottom: 40px; /* מרווח נוסף מתחת לשורה האחרונה */
}

/* עיצוב פוטר קבוע */
.site-footer {
    position: fixed; /* פוטר קבוע בתחתית המסך */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1b4b72;
    color: white;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #ddd;
    z-index: 1000; /* מבטיח שהפוטר יהיה מעל תוכן אחר */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links a {
    color: #d4edda;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* סגנון לכפתור חזרה לדשבורד */
.btn-send.dashboard-btn {
    display: inline-block !important; /* מבטיח שהכפתור גלוי */
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #1b4b72;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s;
    text-align: center;
}

.btn-send.dashboard-btn:hover {
    background-color: #2c6b9f;
}

/* עיצוב כפתור נגישות צף */
.accessibility-button {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background-color: #1b4b72 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    z-index: 2000 !important;
    font-size: 18px !important;
    transition: background-color 0.3s !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.accessibility-button:hover {
    background-color: #2c6b9f !important;
}

.accessibility-button:focus {
    outline: 2px solid #d4edda !important;
    outline-offset: 2px !important;
}

/* עיצוב תפריט נגישות */
.accessibility-menu {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    padding: 15px !important;
    display: none !important;
    z-index: 2000 !important;
}

.accessibility-menu.active {
    display: block !important;
}

.accessibility-menu button {
    display: block !important;
    width: 100% !important;
    padding: 10px !important;
    margin: 5px 0 !important;
    background-color: #1b4b72 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    text-align: right !important;
}

.accessibility-menu button:hover {
    background-color: #2c6b9f !important;
}

.accessibility-menu button:focus {
    outline: 2px solid #d4edda !important;
    outline-offset: 2px !important;
}

/* סגנון ניגודיות גבוהה */
body.high-contrast {
    background-color: #000;
    color: #fff;
}

body.high-contrast .container {
    background-color: #000;
    color: #fff;
}

body.high-contrast h1,
body.high-contrast p,
body.high-contrast a,
body.high-contrast li {
    color: #fff;
}

body.high-contrast .btn-send.dashboard-btn {
    background-color: #fff;
    color: #000;
}

body.high-contrast .btn-send.dashboard-btn:hover {
    background-color: #ddd;
}

/* התאמות למניעת התנגשות עם קבצי CSS אחרים */
.site-footer * {
    box-sizing: border-box;
}

/* התאמות למובייל */
@media (max-width: 768px) {
    .container {
        padding-bottom: 170px; /* מרווח גדול יותר במובייל */
    }
    .site-footer {
        padding: 10px;
    }
    .footer-links a {
        margin: 0 5px;
        font-size: 14px;
    }
    .btn-send.dashboard-btn {
        width: 100%;
        text-align: center;
    }
    .last-updated {
        margin-bottom: 50px; /* מרווח נוסף במובייל */
    }
    .accessibility-button {
        bottom: 80px !important; /* מונע חפיפה עם הפוטר במובייל */
    }
    .accessibility-menu {
        bottom: 140px !important;
        right: 10px !important;
        width: 200px !important;
    }
}

/* ================== סוף /whatsapp_system/css/footer.css ================== */