/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: block; /* Убрали flex */
}

.container, .login-container {
    background: #fff;
    padding: 30px;
    margin: 30px auto; /* Добавили отступ сверху */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
}

.container-dir, .container-log {
    background: #fff;
    padding: 30px;
    margin:  auto; /* Центрирование */
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

   
        .header-content {
            max-width: 600px;
            margin: 0 auto;
            display: flex;
            align-items: center;
           
        }
     
        /* Основной контейнер */
        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
   

label {
    display: block;
    margin: 10px 0px 2px 0px;
    color: #555;
    font-weight: bold;
}

input, select {
    width: 100%;
    height: 32px; 
    padding: 5px 0px 5px 6px; /* Отступ слева 6px */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Добавьте эту строку */
}

textarea  {
    width: 100%;
    height: 70px; 
    padding: 5px 0px 5px 6px; /* Отступ слева 6px */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Добавьте эту строку */
}

input:focus, textarea:focus, select:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
}

/* Стили для всплывающего сообщения */
.popup-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-message.show {
    opacity: 1;
    transform: translateX(0);
}

.popup-message.success {
    background: linear-gradient(135deg, #28a745, #218838);
}

.popup-message.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* Стили для кнопки отчета */
.report-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #ec9f57, #ea9648);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.report-btn:hover {
    background: linear-gradient(135deg, #a85b13, #995311);
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 470px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content input {
    width: 40%;
    padding: 10px 0px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.modal-content button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #0056b3;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Стили для отчета */
.report-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th, .report-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.report-table th {
    background: #f4f4f4;
    font-weight: bold;
}

/* Чередование цветов строк */
.report-table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* Белый цвет для нечетных строк */
}

.report-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Светло-серый цвет для четных строк */
}

/* Эффект при наведении на строку */
.report-table tbody tr:hover {
    background-color: #f1f1f1; /* Цвет при наведении */
}

.print-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.print-btn:hover {
    background: #218838;
}

/* Стили для печати */
@media print {
    body * {
        visibility: hidden;
    }
    .report-container, .report-container * {
        visibility: visible;
    }
    .report-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .report-table {
        width: 100%;
        font-size: 12px;
    }
    .print-btn {
        display: none;
    }
}

/* Стили для поля поиска */
#filterOperation {
    width: 100%;
    padding: 10px 0px 10px 6px; /* Отступ слева 12px */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

/* Стили для контейнера с результатами */
.results-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none; /* Скрыт по умолчанию */
}

.results-container .result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.results-container .result-item:hover {
    background-color: #f4f4f4;
}

/* Стили для кнопки "Работа с планом на текущий день" */
.daily-plan-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.daily-plan-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Стили для кнопки выхода */
.logout-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #808080, #696969); /* Серый градиент */
    color: #fff; /* Белый текст */
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Эффект при наведении на кнопку */
.logout-btn:hover {
    background: linear-gradient(135deg, #696969, #5a5a5a); /* Темно-серый градиент */
}


/* Стили для окна с планом на текущий день */
.daily-plan-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.daily-plan-window h2 {
    text-align: center;
    margin-bottom: 20px;
}

.daily-plan-window table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.daily-plan-window th, .daily-plan-window td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.daily-plan-window th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.daily-plan-window select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.daily-plan-window button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.daily-plan-window button:hover {
    background: #0056b3;
}

/* Стили для кнопки "Открыть операции на текущий день" */
.daily-operations-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #57b0ff, #42aaff);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.daily-operations-btn:hover {
    background: linear-gradient(135deg, #4085d0, #327ccd);
}

  /* Стили для уведомлений */
    .custom-alert {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 15px 25px;
        border-radius: 5px;
        color: white;
        font-size: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 10000;
        display: flex;
        align-items: center;
        max-width: 400px;
        transform: translateX(150%);
        transition: transform 0.3s ease-out;
    }
    
    .custom-alert.show {
        transform: translateX(0);
    }
    
    .custom-alert.success {
        background-color: #4CAF50;
        border-left: 5px solid #388E3C;
    }
    
    .custom-alert.error {
        background-color: #F44336;
        border-left: 5px solid #D32F2F;
    }
    
    .custom-alert i {
        margin-right: 10px;
        font-size: 20px;
    }
    
    /* Анимация исчезновения */
    @keyframes fadeOut {
        from { opacity: 1; }
        to { opacity: 0; }
    }
    
    .custom-alert.hide {
        animation: fadeOut 0.5s ease-out forwards;
    }
