@import url('https://fonts.googleapis.com/css2?family=Alef:wght@400;700&display=swap');

:root {
    --primary-color: #00bf63a5;
    --primary-dark: #00A555;
    --primary-sidbar: #28a972;
    --secondary-color: #011939;
    --accent-gradient: linear-gradient(135deg, #00BF63 0%, #00D26A 100%);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
    --light-bg: #f0f9f5;

    /* Enhanced gradients */
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --orange-gradient: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    --blue-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --pink-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --yellow-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --teal-gradient: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
    --coral-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --sunset-gradient: linear-gradient(135deg, #ff8a00 0%, #e52e71 100%);
    --ocean-gradient: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
    --lavender-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --mint-gradient: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    --emerald-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --cosmic-gradient: linear-gradient(135deg, #fa8c73 0%, #667eea 100%);
    --aurora-gradient: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    --royal-gradient: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
    --fire-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --card1-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    /* ירוק טירקיז */
    --card2-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* סגול כחול */
    --card3-gradient: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    /* כתום */
    --card4-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    /* ורוד פוקסיה */
    --border-radius: 15px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f0f9f5 0%, #f8f9fa 25%, #f0f6ff 50%, #fff0f8 75%, #f0f9f5 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    direction: rtl;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 191, 99, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 172, 254, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 154, 86, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 60% 10%, rgba(103, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 10% 30%, rgba(250, 112, 154, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hidden-header {
    display: none;
}

.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 30px;
    transition: margin 0.3s ease;
}

/* התאמה כשהסיידבאר פתוח */
.sidebar-container.expanded~.container {
    margin-right: 130px;
    margin-left: 130px;
}


/* Banner */
.banner {
    background: var(--royal-gradient);
    color: white;
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.05) 20px,
            rgba(255, 255, 255, 0.05) 40px);
    animation: moveStripes 20s linear infinite;
}

@keyframes moveStripes {
    0% {
        transform: translateX(-100px) translateY(-100px);
    }

    100% {
        transform: translateX(100px) translateY(100px);
    }
}

.banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Cards */
.card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    transition: left 0.5s ease;
}

.card:nth-child(1)::before {
    background: var(--card1-gradient);
}


.card:nth-child(2)::before {
    background: var(--card2-gradient);
}

.card:nth-child(3)::before {
    background: var(--card3-gradient);
}

.card:nth-child(4)::before {
    background: var(--card4-gradient);
}

.card:nth-child(5)::before {
    background: var(--card3-gradient);
}
.card.vacation-card::before {
    background: var(--card3-gradient);
}

.card:hover::before {
    left: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Status Styles */
.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-active {
    background: var(--success-color);
}

.status-inactive {
    background: var(--danger-color);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Time Display */
.time-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.date-display {
    font-size: 1.2rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 25px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    /* מפעיל Flexbox */

    gap: 15px;
    /* רווח בין הכפתורים */
}


.btn {
    background: var(--accent-gradient);
    color: white;
    padding: 8px 18px;
    border: none;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);

}



.btn::before {
 
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn {
    background: var(--accent-gradient);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 99, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Tables */
/* .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th {
    background: var(--light-bg);
    padding: 15px;
    text-align: right;
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.table tr:hover td {
    background-color: rgba(0, 191, 99, 0.05);
} */

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: black;
}

.badge-success {
    background: #d4edda;
}

.badge-warning {
    background: var(--warning-color);
    color: var(--secondary-color);
}

.badge-danger {
    background: #f8d7da;
}

.badge-info {
    background: var(--info-color);
}

/* Vacation Card Styles */
.vacation-card .card-content {
    text-align: center;
}

.vacation-days-remaining {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vacation-days-label {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
    font-weight: 600;
}

.vacation-details {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.vacation-detail-item {
    text-align: center;
}

.vacation-detail-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.vacation-detail-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 99, 0.25);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Dialog Styles */
#requestDialog {
    backdrop-filter: blur(10px);
}

#requestDialog>div {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#requestDialog>div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mint-gradient);
}

#requestDialog h2 {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/* Additional Enhancements */
.card-content {
    position: relative;
    z-index: 1;
}

/* Hover effects for interactive elements */
.table tr {
    transition: var(--transition);
}

.table tr:hover {
    transform: translateX(-3px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* הוספת איקונים צבעוניים קטנים ומדויקים לכרטיסיות */

/* עיצוב כללי לאיקון בכרטיסייה - גודל קטן יותר */
.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* עדכון card-header להכלת האיקון */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.card-header-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.card-title-section {
    flex: 1;
}

/* איקונים ספציפיים לכל כרטיסייה */

/* כרטיסיית רישום נוכחות - ירוק עם איקון שריון */
.card:nth-child(1) .card-icon {
    background: var(--card1-gradient);
}

/* כרטיסיית סטטוס בקשות - כחול סגול עם איקון שעון */
.card:nth-child(2) .card-icon {
    background: var(--card2-gradient);
}

/* כרטיסיית ימי חופשה - כתום עם איקון רפואה */
.vacation-card .card-icon {
    background: var(--card3-gradient);
}

/* כרטיסיית דיווחי נוכחות אחרונים - ורוד עם איקון גרף */
/* כרטיסיית דיווחי נוכחות אחרונים - ורוד פוקסיה */
.card:nth-child(4) .card-icon {
    background: var(--card4-gradient);
}


/* התאמה רספונסיבית */

/* עדכון עיצוב הבאנר עם איקון בצד - לא שקוף ויותר במרכז */
.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.banner-text {
    flex: 1;
}

.banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    /* מזיז קצת שמאלה - יותר למרכז */
}

.emoji-icon {
    font-size: 4rem;
    opacity: 1;
    /* לא שקוף! */
    transition: all 0.3s ease;
}

.banner:hover .emoji-icon {
    transform: scale(1.1);
}


/* סרגל צד - מכיל בתוכו רק את האייקונים במצב ברירת מחדל */
.sidebar-container {
    width: 60px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1000;
    transition: width 0.3s ease;
    background: transparent;
    overflow: visible;
}

/* מצב מורחב של הסרגל */
.sidebar-container.expanded {
    width: 260px;
}

.sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background: linear-gradient(135deg, #2ebf91 0%, #8360c3 100%);
    border-radius: 25px 0 0 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    /* שינוי למבנה פלקס */
    overflow: hidden;
    /* מניעת גלילה כללית */
}


/* הצגת הסיידבאר במצב מורחב */
.sidebar-container.expanded .sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* מיכל האייקונים הצפים */
.floating-icons {
    position: absolute;
    top: 0;
    right: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    z-index: 1100;
    padding: 20px 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* הסתרת האייקונים הצפים כאשר הסרגל פתוח (חוץ מכפתור ההמבורגר) */
.sidebar-container.expanded .floating-icons a:not(.menu-toggle) {
    opacity: 0;
    visibility: hidden;
}

/* כפתור ההמבורגר תמיד גלוי */
.sidebar-container.expanded .floating-icons .menu-toggle {
    opacity: 1;
    visibility: visible;
}

/* עיצוב האייקונים הצפים */
.floating-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--primary-sidbar);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* אפקט מעבר עכבר על האייקונים */
.floating-icons a:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* כפתור תפריט בראש רשימת האייקונים */
.menu-toggle {
    margin-bottom: 10px;
}

/* התאמת האייקונים */
.floating-icons i {
    font-size: 18px;
}

.floating-icons img {
    width: 20px;
    height: 20px;
}

@media (max-height: 800px) {
    .floating-icons {
        gap: 8px;
    }

    .floating-icons a {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }

    .floating-icons i {
        font-size: 15px;
    }

    .floating-icons img {
        width: 17px;
        height: 17px;
    }
}

@media (max-height: 650px) {
    .floating-icons {
        gap: 4px;
    }

    .floating-icons a {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .floating-icons i {
        font-size: 13px;
    }

    .floating-icons img {
        width: 14px;
        height: 14px;
    }
}

.sidebar-header {
    margin-bottom: 20px;
    text-align: center;
    padding: 20px 20px 0 20px;
    flex-shrink: 0;
    /* לא יתכווץ */
}

.sidebar-header img {
    max-width: 150px;
    height: auto;
}

.sidebar-menu {
    flex: 1;
    /* תופס את כל השטח הזמין */
    overflow-y: auto;
    /* גלילה אנכית */
    overflow-x: hidden;
    /* מניעת גלילה אופקית */
    padding: 0 20px;
    margin-bottom: 0;
    /* הסתרת פס הגלילה */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* הסתרת פס הגלילה ב-WebKit */
.sidebar-menu::-webkit-scrollbar {
    display: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-menu a i,
.sidebar-menu a img {
    margin-left: 12px;
}

/* הכפתורים התחתונים - קבועים */
.sidebar-bottom {
    position: relative;
    /* שינוי מ-absolute */
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    /* לא יתכווץ */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* קו הפרדה עדין */
}

.sidebar-icons {
    display: flex;
    justify-content: space-around;
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* התאמת התוכן הראשי */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    transition: margin-right 0.3s ease;
}


.container.sidebar-expanded {
    margin-right: 260px;
    width: calc(100% - 260px);
}


.hidden-header {
    position: fixed;
    top: -70px;
    /* גובה ההידר כשהוא מוסתר */
    left: 0;
    right: 0;
    height: 70px;
    background: #009572;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #009572;
    font-weight: bold;
    font-size: 18px;
}

.user-name {
    font-weight: 500;
    color: white;
}

.logo-container {
    height: 50px;
}

.header-logo {
    height: 100%;
    width: auto;
}

/* אזור הפעלה בהנחת עכבר */
.header-trigger {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 1999;
}

/* עיצוב במצב לילה */
body.dark-mode .hidden-header {
    background: #1e2e42;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .user-name {
    color: #ddd;
}

/* עיצוב כרטיסיות יתרות החופשה והמחלה */
.summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.summary-box {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    transition: left 0.5s ease;
}

/* גרדיאנט לכרטיסיית חופשה */
.summary-box:nth-child(1)::before {
    background: var(--accent-gradient);
}

/* גרדיאנט לכרטיסיית מחלה */
.summary-box:nth-child(2)::before {
    background: var(--orange-gradient);
}

.summary-box:hover::before {
    left: 0;
}

.summary-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* איקונים ספציפיים לכרטיסיות יתרות */
.summary-box:nth-child(1) .card-icon {
    background: var(--accent-gradient);
}

.summary-box:nth-child(2) .card-icon {
    background: var(--orange-gradient);
}

/* עיצוב השורות */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: black;
    font-size: 1rem;
}

.summary-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: red;
    min-width: 40px;
    text-align: center;
    padding: 6px 12px;
    background: var(--light-bg);
    border-radius: 10px;
}

/* צבעים שונים לערכים */
.summary-box:nth-child(1) .summary-value {
    color: #00BF63;
    background: rgba(0, 191, 99, 0.1);
}

.summary-box:nth-child(2) .summary-value {
    color: #ff9a56;
    background: rgba(255, 154, 86, 0.1);
}

/* התאמה רספונסיבית */

/* Page Title */
.page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--royal-gradient);
    border-radius: 2px;
}

/* Entry Options Grid */
.entry-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Entry Cards */
.entry-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    transition: left 0.5s ease;
}

.entry-card:nth-child(1)::before {
    background: var(--card1-gradient);
}

.entry-card:nth-child(2)::before {
    background: var(--card2-gradient);
}

.entry-card:hover::before {
    left: 0;
}

.entry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Entry Icon */
.entry-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 25px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .entry-card:nth-child(1) .entry-icon {
    background: var(--card1-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.entry-card:nth-child(2) .entry-icon {
    background: var(--card2-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */

/* Entry Title */
.entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Entry Description */
.entry-description {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* עדכון עיצוב הכפתורים עבור דף הכניסה */
.entry-card .btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.entry-card:nth-child(1) .btn {
    background: var(--card1-gradient);
    color: white;
}

.entry-card:nth-child(1) .btn:hover {
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.entry-card:nth-child(2) .btn {
    background: var(--card2-gradient);
    color: white;
}

.entry-card:nth-child(2) .btn:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--royal-gradient);
    border-radius: 1px;
}


/* הוספה לקובץ CSS הקיים - עדכונים רספונסיביים */

/* כפתור תפריט נוסף למובייל */
.mobile-menu-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--primary-sidebar);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}



/* אובר-ליי למובייל כשהתפריט פתוח */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* תפריט מובייל מלא */
.mobile-fullscreen-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #2ebf91 0%, #8360c3 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 70px 20px 20px;
    overflow-y: auto;
}

.mobile-fullscreen-menu.active {
    right: 0;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-items li {
    margin-bottom: 5px;
}

.mobile-menu-items a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.mobile-menu-items a:hover,
.mobile-menu-items a.active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-items a i {
    margin-left: 12px;
    font-size: 18px;
    width: 20px;
}

/* ===== CSS רספונסיבי מאוחד לעובד ומנהל ===== */

/* כפתור תפריט נוסף למובייל */
.mobile-menu-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--primary-sidebar);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* אובר-ליי למובייל כשהתפריט פתוח */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* תפריט מובייל מלא */
.mobile-fullscreen-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #2ebf91 0%, #8360c3 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 70px 20px 20px;
    overflow-y: auto;
}

.mobile-fullscreen-menu.active {
    right: 0;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-items li {
    margin-bottom: 5px;
}

.mobile-menu-items a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.mobile-menu-items a:hover,
.mobile-menu-items a.active {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-items a i {
    margin-left: 12px;
    font-size: 18px;
    width: 20px;
}

/* עטיפה לטבלאות עם גלילה אופקית */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -8px 15px -8px;
    padding: 0 8px;
    position: relative;
}

/* ===== רספונסיביות - דסקטופ קטן ===== */
@media (max-width: 1200px) {
    .container {
        padding: 20px;
    }

    .sidebar-container.expanded~.container {
        margin-right: 80px;
        margin-left: 80px;
    }
}

/* ===== רספונסיביות - טאבלט ===== */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .sidebar-container.expanded~.container {
        margin-right: 40px;
        margin-left: 40px;
    }

    /* גריד סטטיסטיקות - 2 עמודות */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* גריד 2 עמודות נשאר כמו שהוא */
    .grid-2 {
        gap: 15px;
    }

    /* באנר - ריווח מצומצם */
    .banner-content {
        gap: 20px;
    }

    .banner-text h2 {
        font-size: 1.6rem;
    }

    /* DataTables גלילה */
    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* טפסים - 2 עמודות */
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== רספונסיביות מאוחדת למובייל + טאבלט ===== */
@media (max-width: 1024px) {

    /* ===== הסתרה מוחלטת של כל האלמנטים הדסקטופיים ===== */
    .sidebar-container,
    .floating-icons,
    .sidebar,
    .navbar,
    .header,
    .hidden-header {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* ===== תיקון גוף הדף ===== */
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body {
        padding-bottom: 80px !important;
        /* מקום לbottom nav */
    }

    /* ===== תיקון הקונטיינר הראשי ===== */
    .container {
        margin: 0 !important;
        padding: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        z-index: 1 !important;
        box-sizing: border-box !important;
    }

    /* ===== תיקון main-content (לדף מנהל) ===== */
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ===== תיקון הבאנר ===== */
    .banner {
        margin: 0 0 15px 0 !important;
        padding: 15px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .banner-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }

    /* תיקון לדף עובד */
    .profile-header-in-banner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .profile-avatar {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }

    .profile-info h2,
    .banner-text h2 {
        font-size: 1.4rem !important;
        margin-bottom: 6px !important;
    }

    .profile-info p,
    .banner-text p {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }

    .emoji-icon {
        font-size: 2.5rem !important;
    }

    /* ===== תיקון stats-grid (לדף מנהל) ===== */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }

    .stat-card {
        padding: 12px !important;
        border-radius: 12px !important;
        min-height: auto !important;
    }

    .stat-icon {
        font-size: 1.2rem !important;
        width: 35px !important;
        height: 35px !important;
        margin-bottom: 8px !important;
    }

    .stat-value {
        font-size: 1.4rem !important;
        margin-bottom: 4px !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }

    /* ===== תיקון grid-2 (לדף מנהל) ===== */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }

    /* ===== תיקון הטאבים ===== */
    .tab-container {
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
    }

    .tabs {
        display: flex !important;
        overflow-x: auto !important;
        background: white !important;
        border-radius: 12px !important;
        padding: 6px !important;
        margin-bottom: 15px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        gap: 4px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .tabs::-webkit-scrollbar {
        display: none !important;
    }

    .tab {
        flex: none !important;
        min-width: 85px !important;
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        text-align: center !important;
        white-space: nowrap !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        background: transparent !important;
        color: #666 !important;
        border: none !important;
        font-weight: 600 !important;
    }

    .tab.active {
        background: var(--primary-color) !important;
        color: white !important;
        transform: none !important;
    }

    /* ===== תיקון הכרטיסיות ===== */
    .card {
        margin: 0 0 12px 0 !important;
        padding: 12px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }

    .card-header {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 4px !important;
    }

    .card-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
        margin: 0 auto !important;
    }

    /* ===== תיקון הטפסים ===== */
    .form-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .form-group {
        margin-bottom: 12px !important;
    }

    .form-group label {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px !important;
        font-size: 16px !important;
        /* למנוע זום באייפון */
        border-radius: 10px !important;
        border: 1px solid #ddd !important;
    }

    .form-control {
        padding: 12px 14px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    /* ===== תיקון הטבלאות עם גלילה אופקית ===== */
    .table-responsive {
        margin: 0 -8px 15px -8px;
        border-radius: 8px;
        position: relative;
    }

    .table {
        white-space: nowrap;
    }

    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table th,
    .table td {
        white-space: nowrap;
        /* מניעת שבירת טקסט */
        padding: 8px 6px !important;
        font-size: 0.8rem !important;
    }

    /* טבלת פרטי העסקה */
    .employment-table {
        min-width: 100% !important;
        font-size: 0.85rem !important;
    }

    .employment-table th {
        width: 35% !important;
        min-width: 120px !important;
        padding: 10px 8px !important;
        background: var(--light-bg) !important;
        color: var(--secondary-color) !important;
    }

    .employment-table td {
        width: 65% !important;
        padding: 10px 8px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    /* ===== תיקון search-bar (לדף מנהל) ===== */
    .search-bar {
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }

    .search-input {
        width: 100% !important;
        margin-bottom: 8px !important;
        padding: 10px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    /* ===== תיקון אזור המסמכים (לדף עובד) ===== */
    .documents-section {
        padding: 0 !important;
    }

    .documents-categories {
        margin: 0 !important;
    }

    .document-category {
        margin-bottom: 20px !important;
    }

    .document-category h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        padding: 8px 0 !important;
    }

    .documents-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .document-item {
        padding: 12px !important;
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }

    .document-title-row {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: flex-start !important;
    }

    .document-title {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }

    .fill-link {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        align-self: flex-start !important;
    }

    .document-info p {
        font-size: 0.75rem !important;
        margin: 2px 0 !important;
    }

    .document-status {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
    }

    .document-actions {
        flex-wrap: wrap !important;
        gap: 4px !important;
        margin-top: 8px !important;
    }

    .btn-icon {
        padding: 6px !important;
        min-width: 32px !important;
        font-size: 0.8rem !important;
    }

    .upload-section {
        margin-top: 20px !important;
        padding: 0 !important;
    }

    .upload-area {
        padding: 15px !important;
        border-radius: 10px !important;
    }

    /* ===== תיקון הכפתורים ===== */
    .btn {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        margin-top: 8px !important;
    }

    .btn-sm {
        width: auto !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        margin-top: 0 !important;
    }

    .sign-btn {
        width: auto !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    /* ===== כפתור תפריט מובייל ===== */
    .mobile-menu-btn {
        display: flex !important;
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        width: 42px !important;
        height: 42px !important;
        background: var(--primary-sidebar) !important;
        color: white !important;
        border: none !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        z-index: 1001 !important;
        font-size: 16px !important;
        cursor: pointer !important;
    }
}

/* ===== תיקונים למסכים קטנים מאוד ===== */
@media (max-width: 480px) {
    .container {
        padding: 6px !important;
    }

    .banner {
        padding: 12px !important;
    }

    .profile-info h2,
    .banner-text h2 {
        font-size: 1.2rem !important;
    }

    .profile-info p,
    .banner-text p {
        font-size: 0.8rem !important;
    }

    .tab {
        min-width: 75px !important;
        padding: 6px 8px !important;
        font-size: 0.75rem !important;
    }

    .card {
        padding: 10px !important;
    }

    .card-title {
        font-size: 1rem !important;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px !important;
        font-size: 16px !important;
    }

    .table {
        min-width: 450px;
    }

    .table th,
    .table td {
        padding: 6px 4px !important;
        font-size: 0.75rem !important;
    }

    .employment-table th {
        min-width: 100px !important;
    }

    .mobile-menu-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .stat-value {
        font-size: 1.2rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }
}

/* ===== תיקונים לגובה מסך קטן ===== */
@media (max-height: 600px) {
    .banner {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    .card {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }

    body {
        padding-bottom: 65px !important;
    }
}

/* ===== תיקון לגלילה חלקה ===== */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth !important;
    }

    .tabs {
        scroll-behavior: smooth !important;
    }

    * {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ===== תיקון פשוט לטאבים ברספונסיבי - ללא שינוי עיצוב ===== */

@media (max-width: 768px) {

    /* הטאבים יתכווצו ויתאימו למסך */
    .tabs {
        flex-wrap: wrap !important;
        /* יעברו לשורה חדשה במידת הצורך */
        justify-content: center !important;
        /* ממוקד */
        gap: 4px !important;
        padding: 8px !important;
    }

    .tab {
        flex: 1 1 auto !important;
        /* יתכווצו אוטומטית */
        min-width: 70px !important;
        /* מינימום רוחב קטן */
        max-width: 120px !important;
        /* מקסימום רוחב */
        padding: 8px 6px !important;
        font-size: 0.8rem !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        /* נקודות אם הטקסט ארוך מדי */
        word-break: break-word !important;
    }
}

@media (max-width: 480px) {

    .tab {
        min-width: 60px !important;
        max-width: 100px !important;
        padding: 6px 4px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 360px) {

    .tab {
        min-width: 50px !important;
        max-width: 80px !important;
        padding: 6px 2px !important;
        font-size: 0.7rem !important;
    }
}

/* ===== רספונסיביות לדף הכניסה ===== */

@media (max-width: 768px) {

    /* תיקון הקונטיינר */
    .container {
        margin: 0 !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* תיקון כותרת הדף */
    .page-title {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
        padding: 0 10px !important;
        text-align: center !important;
    }

    .page-title::after {
        width: 80px !important;
        height: 3px !important;
    }

    /* תיקון רשת הכרטיסיות */
    .entry-options {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 30px !important;
        padding: 0 !important;
    }

    /* תיקון הכרטיסיות */
    .entry-card {
        padding: 25px !important;
        border-radius: 15px !important;
        min-height: 220px !important;
        margin-bottom: 15px !important;
        cursor: pointer !important;
    }

    /* תיקון האיקונים */
    .entry-icon {
        font-size: 2.5rem !important;
        height: 60px !important;
        margin-bottom: 15px !important;
    }

    /* תיקון הכותרות */
    .entry-title {
        font-size: 1.5rem !important;
        margin-bottom: 12px !important;
    }

    /* תיקון התיאור */
    .entry-description {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        padding: 0 5px !important;
        line-height: 1.5 !important;
    }

    /* תיקון הכפתורים */
    .entry-card .btn {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
        margin-top: 0 !important;
    }

    /* תיקון הפוטר */
    footer {
        padding: 20px 15px !important;
        margin-top: 30px !important;
        font-size: 0.9rem !important;
    }

    footer::before {
        width: 150px !important;
        height: 1px !important;
    }
}

/* מסכים קטנים מאוד */
@media (max-width: 480px) {

    .container {
        padding: 10px !important;
    }

    .page-title {
        font-size: 1.7rem !important;
        margin-bottom: 25px !important;
    }

    .entry-options {
        gap: 15px !important;
        margin-top: 20px !important;
    }

    .entry-card {
        padding: 20px !important;
        min-height: 200px !important;
    }

    .entry-icon {
        font-size: 2rem !important;
        height: 50px !important;
        margin-bottom: 12px !important;
    }

    .entry-title {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }

    .entry-description {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    .entry-card .btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    footer {
        padding: 15px 10px !important;
        margin-top: 25px !important;
        font-size: 0.8rem !important;
    }
}

/* מסכים קטנים במיוחד */
@media (max-width: 360px) {

    .container {
        padding: 8px !important;
    }

    .page-title {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
    }

    .entry-card {
        padding: 15px !important;
        min-height: 180px !important;
    }

    .entry-icon {
        font-size: 1.8rem !important;
        height: 45px !important;
    }

    .entry-title {
        font-size: 1.2rem !important;
    }

    .entry-description {
        font-size: 0.85rem !important;
    }

    .entry-card .btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
}

/* תיקון לגובה מסך קטן */
@media (max-height: 600px) {

    .page-title {
        margin-bottom: 20px !important;
    }

    .entry-options {
        margin-top: 15px !important;
        gap: 12px !important;
    }

    .entry-card {
        min-height: auto !important;
        padding: 15px !important;
    }

    .entry-icon {
        height: 40px !important;
        margin-bottom: 8px !important;
    }

    .entry-description {
        margin-bottom: 12px !important;
    }

    footer {
        margin-top: 15px !important;
        padding: 12px !important;
    }
}

/* ===== תיקונים כלליים לגוף הדף ===== */
@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body {
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .container {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
}





/* פריט מסמך חתימה */
.signature-doc-item {
    border-right: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.signature-doc-item[data-status="Signed"] {
    border-right-color: #28a745;
}

.signature-doc-item[data-status="Pending"] {
    border-right-color: #ffc107;
}

.signature-doc-item[data-status="Declined"] {
    border-right-color: #dc3545;
}

/* מטא מידע של מסמך */
.document-meta {
    display: flex;
    gap: 10px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.doc-type-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    background: #e3f2fd;
    color: #1976d2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.signed {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.declined {
    background: #f8d7da;
    color: #721c24;
}

/* תאריכי מסמך */
.document-dates {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.document-dates span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* סיכום משופר */
.summary-item.signed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.summary-item.declined {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.summary-item.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #d39e00;
}
.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
}

/* פילטר מסמכי חתימה */
.signature-docs-filter {
    display: flex;
}

.signature-docs-filter .filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: white;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.signature-docs-filter .filter-btn.active {
    background: rgba(40, 167, 69, 0.1);
    color:var(--success-color);
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
    padding: 0 25px 0 15px;
    flex-direction: row-reverse;
}

.sidebar-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* הסתרת ההמבורגר הצף כשהסרגל פתוח */
.sidebar-container.expanded .floating-icons .menu-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}.entry-card:nth-child(3)::before {
    background: var(--card3-gradient);
}

.entry-card:nth-child(3) .btn {
    background: var(--card3-gradient);
    color: white;
}

.entry-card:nth-child(3) .btn:hover {
    box-shadow: 0 8px 25px rgba(255, 154, 86, 0.4);
}