/* סגנונות כלליים */
body {
    font-family: Arial, sans-serif;
    background-color: cornsilk;
    margin: 0;
    padding: 20px;
    color: #333;
    direction: rtl;
}

/* סגנונות קונטיינר ראשי */
.container {
    max-width: 1000px; /* שונה מ-1200px ל-800px עבור מסכי מחשב */
    margin: 60px auto 20px auto;
    background-color: honeydew;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid royalblue;
}

h1 {
    text-align: center;
    color: #000000;
    margin-bottom: 20px;
    font-size: 2.2em;
}

/* סגנונות כפתורי מעבר (Toggle Buttons) */
.toggle-container {
    text-align: center;
    margin-bottom: 20px;
}

.toggle-button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background-color: snow;
    color: #2e7d32;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.2s ease;
}

.toggle-button.active,
.toggle-button:hover {
    background-color: #2e7d32;
    color: snow;
}

/* סגנונות טבלאות */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: snow;
}

th,
td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background-color: #2e7d32;
    color: snow;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

th:hover {
    background-color: #1b5e20;
}

td a {
    color: #2e7d32;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

td a:hover {
    color: #ff0000;
    background-color: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
}

tr:nth-child(even) {
    background-color: #f0f0f0;
}

tr:hover {
    background-color: honeydew;
}

#employersDataTable th:nth-child(1),
#employersDataTable td:nth-child(1),
#jobSeekersDataTable th:nth-child(1),
#jobSeekersDataTable td:nth-child(1) { /* תאריך */
    min-width: 100px;
    max-width: 120px;
    display: none;
}

th:nth-child(7),
td:nth-child(7) { /* תיאור */
    min-width: 200px;
}

/*
th:nth-child(4),
td:nth-child(4) { 
    min-width: 100px;
}
*/


/* סגנונות כפתור נגישות */
.accessibility-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #007bff;
    color: snow;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    outline: none;
    cursor: pointer;
}

.accessibility-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.accessibility-button:focus {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
}

.accessibility-button .emoji {
    font-size: 1.2em;
}

#accessibility-alert {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: snow;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-size: 1em;
    text-align: center;
}


/* מדיה קוורי לרספונסיביות */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 80px auto 10px auto;
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    .toggle-button {
        padding: 8px 12px;
        font-size: 14px;
        margin: 2px;
    }

    th,
    td {
        padding: 8px;
        font-size: 14px;
    }
}
