/* ===== БАЗОВАЯ ВЕРСТКА ===== */
@import url(base.css);

body {
    position: relative;
    font-family: Arial, sans-serif;
    background-color: #5655558d;
}

body::before {
    content: "";
    position: fixed;
    /* фиксируем, чтобы покрыть весь экран */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/avicenaImage2.png');
    background-size: cover;
    background-position: center;
    /* прозрачность фонового изображения */
    z-index: -1;
    /* помещаем позади основного контента */
}

header {
    background-color: #0c4601;
    color: #fff;
    padding: 1px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 10px 12px 14px rgba(0.30, 0.30, 0.30, 0.30);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.98;
    margin-top: 60px;
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-top: 180px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 10px 14px 20px rgba(0.20, 0.20, 0.20, 0.20);
    position: relative;
    background: white;
    z-index: 10;
    opacity: 0.95;
}

/* ===== МЕСЯЧНАЯ НАВИГАЦИЯ ===== */
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #4CAF50, #388E3C);
    border: #0d460191 solid 1px;
    padding: 15px 20px;
    text-shadow: 5px 5px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.month-navigation h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #ffffff;
    text-shadow: 5px 5px 12px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    justify-content: center;

    margin-top: 6px;
}

/* ===== КНОПКИ УПРАВЛЕНИЯ ===== */



.nav-button {
    background: #205c2a;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
    cursor: pointer;
}

.nav-button:hover {
    background: #1b4c24;
    color: #f2ff01;
}

.button-group {
    background: #fdab68c4;
    color: #000000;
    border: 2px solid #e69940c2;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.3s ease;
}

.button-group:hover {
    background: #f9a04b;

}



/* ===== СТИЛИ ТАБЛИЦЫ ===== */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
    border: 1px solid #a5c7aa;
    border-radius: 8px;
    box-shadow: 10px 12px 14px rgba(0.30, 0.30, 0.30, 0.30);

}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

tr {
    cursor: pointer;
}

tr:hover {
    background-color: rgba(50, 161, 83, 0.37);

}

tr:hover .operation-day {
    background-color: rgba(50, 161, 83, 0.37);
}

tr:hover .duty {
    background-color: rgb(224, 19, 19);
}

tr:hover .day-duty {
    background-color: rgba(0, 223, 67, 0.753);
}


tr:hover .doba {
    background-color: rgba(247, 20, 20, 0.952);
}


tr:hover .marked {
    background-color: rgba(0, 217, 255, 0.959);
}

tr:hover .clicked {
    background-color: rgb(245, 76, 76);
}

tr:hover .clicked.doba {
    background-color: rgba(255, 125, 125, 0.3);
}

tr:hover .weekend.clicked {
    background-color: rgba(245, 76, 76);
}

tr:hover .weekend.clicked.doba {
    background-color: rgba(226, 93, 3, 0.904);
}

th,
td {
    padding: 12px;
    text-align: center;
    border: 1px solid #94c09f;
}

th {
    background: #049008b4;
    color: rgb(0, 0, 0);
    font-weight: 600;
    position: sticky;
    top: 0;
}

td:first-child,
th:first-child {
    text-align: left;
    background: #e3ffe9;
    position: sticky;
    left: 0;
    min-width: 180px;
    font-weight: 600;
    z-index: 9999;
}

th.weekend {
    background: #ffbd7f;
    color: #000000;
}

/* ===== ЦВЕТОВЫЕ КЛАССЫ ===== */
.duty {
    background: #e8f5e9;
    color: #1b5e20;
    font-weight: bold;
    position: relative;
}

.duty::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background: #2e7d32;
    border-radius: 50%;
}

.day-duty {
    background: #a4fda8e7;
    color: #161616;
    font-weight: bold;
}

.weekend.day-duty {
    background: #ffc493c2;
    color: #202020;
    font-weight: bold;
}

.operation-day {
    background: #dbffdd;
    font-weight: bold;
}

.operation-day-weekend {
    background: #fbd5bb;
    font-weight: bold;
}

.doba {
    background: #ff6c6c;
    color: #000000;
    font-weight: bold;
}

.weekend.clicked {
    background: #ffcead;
    color: #000000;
    font-weight: bold;
}

.weekend.clicked.doba {
    background: #ff9d5b;
    color: #000000;
    font-weight: bold;
}

.weekend.doba {
    background: #ff9d5b;
    color: #000000;
    font-weight: bold;
}

.clicked.doba {
    background: #ff7d7d;
    color: #000000;
    font-weight: bold;
}

.clicked {
    background: #ffc7c7;
    color: #000000;
    font-weight: bold;
}

.marked {
    background: #ffffffd0;
    font-weight: bold;
    position: relative;
}

.marked::after {
    content: "А";
    font-weight: bold;
    color: #000000;
}

.operation-day.marked {
    background: #a4f3fde7;
    font-weight: bold;
}

.weekend.marked {
    background: #6bc4cfc2;
    color: #242424;
    font-style: italic;
}

.weekend {
    background: #fdd8baa8;
    color: #242424;
    font-style: italic;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: row;
        align-items: flex-start;
    }

    .container {
        padding: 20px 10px;
        border-radius: 0;
    }

    .month-navigation {
        flex-direction: row;
        align-items: stretch;
    }



    td:first-child,
    th:first-child {
        min-width: 140px;
    }

    table {
        font-size: 13px;
    }

    .month-navigation h3 {
        margin: 0;
        font-size: 1.1rem;
        color: #000000;
        font-weight: 700;
        justify-content: center;
        margin-top: 6px;
    }

}