* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

header button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

.kanban {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 100px);
}

.column {
    flex: 1;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    min-width: 250px;
}

.column-header {
    padding: 15px;
    background-color: #F5F5F5; /* Тёмный фон */
    color: black; /* Белый текст */
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    user-select: none; /* Запрещаем выделение текста */
    -webkit-user-select: none;
}

/* Эффект наведения на заголовок */
.column-header:hover {
    background-color: #F2F2F2;
    cursor: default;
}

.column h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #7f8c8d;
}

.order-list {
    min-height: 100px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 10px 0;
    scrollbar-color: #888 transparent;
}

.order-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: move;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.order-card h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.order-card p {
    margin: 5px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .kanban {
        flex-wrap: wrap;
    }
    
    .column {
        min-width: 100%;
    }
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(52, 152, 219, 0.5);
    border: 1px solid #2C3E50;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 16px;
    width: 350px;
    z-index: 1000;
    transition: opacity 0.3s;
}

.notification.hidden {
    display: none;
}

/* Основной контейнер — делаем его flex-контейнером */
.notification-content {
    display: flex;
    flex-direction: column;          /* Элементы идут вертикально */
    align-items: center;          /* Горизонтальное центрирование */
    justify-content: center;       /* Вертикальное центрирование (если нужно) */
    text-align: center;            /* Для текстового содержимого */
    margin: 0;
    padding: 0;
}

/* Текст внутри уведомления */
.notification p {
    margin: 4px 0;               /* Отступы между абзацами */
    line-height: 1.4;
}

/* Кнопки */
.notification button {
    margin-top: 12px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 180px;                 /* Фиксированная ширина для симметрии */
    font-size: 14px;
}

.notification button:first-child {
    background-color: #28a745;
    color: white;
}

.notification button:last-child {
    background-color: #dc3545;
    color: white;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px; /* расстояние между кнопками */
    margin-left: auto; /* прижмёт кнопки вправо */
}

/* Для мобильных: уменьшаем отступы */
@media (max-width: 768px) {
    .header-controls {
        gap: 8px;
    }
}

.btn-issued {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 16px;
    background-color: #10b983;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.btn-issued:hover {
    background-color: #10b983;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Скрыто по умолчанию*/
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 800px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #666;
}

