﻿/* Основные настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #1a1a1a, #333333); /* Черный градиент */
    color: #d4af37; /* Золотой текст */
    min-height: 100vh;
    margin-bottom: 60px;
}

a {
    text-decoration: none;
    color: #d4af37; /* Золотой цвет ссылок */
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* Фокус для элементов */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(212, 175, 55, 0.2), 0 0 0 0.25rem #b8860b; /* Золотой акцент */
}

h1:focus {
    outline: none;
}

/* Валидация полей */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #32a852; /* Зеленый для валидных полей */
}

.invalid {
    outline: 1px solid #ff4040; /* Красный для невалидных полей */
}

.validation-message {
    color: #ff4040; /* Красный для сообщений об ошибках */
}

/* Градиентный фон */
.gradient-background {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    min-height: 100vh;
}

/* Контейнеры */
.container {
    max-width: 1200px;
    padding: 20px;
    background: rgba(26, 26, 26, 0.2); /* Полупрозрачный черный */
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.content {
    padding-top: 1.1rem;
}

.page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #d4af37; /* Золотой текст */
}

.text-container {
    background: rgba(26, 26, 26, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.main-section-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.section-container {
    background: rgba(26, 26, 26, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Изображения */
.img-block {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

    .img-block:hover {
        transform: scale(1.05);
    }

.rounded-image {
    max-width: 100px;
    border-radius: 8px;
}

/* Поля ввода */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"].form-input,
textarea.form-input,
.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    outline: none;
    background: rgba(212, 175, 55, 0.2); /* Полупрозрачный золотой */
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 1rem;
    color: #1a1a1a; /* Черный текст */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="file"].form-input:focus,
    textarea.form-input:focus,
    .form-input:focus {
        background: rgba(212, 175, 55, 0.3);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        border: 1px solid #b8860b; /* Золотая рамка */
    }

    .form-input option {
        background: rgba(26, 26, 26, 0.9);
        color: #d4af37;
    }

textarea.form-input {
    resize: vertical;
}

.form-input::-ms-expand {
    display: none;
}

/* Чекбоксы */
.darker-border-checkbox.form-check-input,
.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #d4af37; /* Золотой акцент */
    cursor: pointer;
    border-color: #929292;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Большие поля ввода */
.form-input-lg {
    font-size: 1.2rem;
    padding: 20px;
    height: auto;
}

textarea.form-input-lg {
    resize: vertical;
    font-size: 1.2rem;
}

/* Кнопки */
button, .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    color: #1a1a1a;
    background: #d4af37; /* Золотой фон */
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

    button:hover, .btn:hover {
        transform: translateY(-3px);
        background: #b8860b; /* Темный золотой */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

    button:active, .btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

.btn-primary {
    background: #d4af37;
    color: #1a1a1a;
}

    .btn-primary:hover {
        background: #b8860b;
        transform: scale(1.05);
    }

.btn-secondary {
    background: rgba(26, 26, 26, 0.3);
    color: #d4af37;
}

    .btn-secondary:hover {
        background: rgba(26, 26, 26, 0.5);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

.btn-danger {
    background: #ff4040; /* Красный */
    color: #ffffff;
}

    .btn-danger:hover {
        background: #cc0000;
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

    .action-buttons button {
        padding: 8px 16px;
        border-radius: 4px;
    }

    .action-buttons .primary-button {
        background: #d4af37;
        color: #1a1a1a;
    }

        .action-buttons .primary-button:hover {
            background: #b8860b;
        }

    .action-buttons .secondary-button {
        background: rgba(26, 26, 26, 0.3);
        color: #d4af37;
    }

        .action-buttons .secondary-button:hover {
            background: rgba(26, 26, 26, 0.5);
        }

/* Ссылки действий */
.action-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.action-link {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #1a1a1a;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.primary-link {
    background: #d4af37;
}

    .primary-link:hover {
        transform: translateY(-3px);
        background: #b8860b;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

.secondary-link {
    background: rgba(26, 26, 26, 0.3);
    color: #d4af37;
}

    .secondary-link:hover {
        transform: translateY(-3px);
        background: rgba(26, 26, 26, 0.5);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

.danger-link {
    background: #ff4040;
    color: #ffffff;
}

    .danger-link:hover {
        transform: translateY(-3px);
        background: #cc0000;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    }

/* Иконки действий */
.action-icons {
    display: flex;
    gap: 10px;
}

.action-icon {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .action-icon:hover {
        color: #b8860b;
    }

.view-icon {
    color: #17a2b8;
}

.edit-icon {
    color: #32a852;
}

.delete-icon {
    color: #ff4040;
}

/* Навигация */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .nav-link:hover {
        background: rgba(212, 175, 55, 0.2);
        color: #b8860b;
    }

.nav-item a.logout {
    color: #ff4040;
}

    .nav-item a.logout:hover {
        background: rgba(255, 64, 64, 0.2);
        color: #cc0000;
    }

.nav-link i, .nav-link span {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.nav-link.text-only {
    background: none;
    border: none;
    padding: 0;
    color: #d4af37;
    cursor: default;
}

    .nav-link.text-only.separator {
        margin: 0 10px;
    }

/* Таблицы */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
    background: rgba(26, 26, 26, 0.2);
    border-radius: 8px;
    overflow: hidden;
    color: #d4af37;
}

    .table th, .table td {
        padding: 15px;
        text-align: center;
        border: 1px solid rgba(212, 175, 55, 0.3);
        background: transparent;
        color: #d4af37;
    }

    .table th {
        background: rgba(26, 26, 26, 0.3);
        font-weight: bold;
    }

    .table tbody tr:hover {
        background: rgba(212, 175, 55, 0.1);
    }

.table-body {
    background: rgba(26, 26, 26, 0.2);
    backdrop-filter: blur(10px);
}

.custom-grid thead th {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: #d4af37;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.custom-grid td, .custom-grid th {
    text-align: center;
    vertical-align: middle;
}

/* Статусы */
.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 16px;
    font-weight: bold;
    color: #ffffff;
}

    .status.available {
        background: #32a852; /* Зеленый */
    }

    .status.unavailable {
        background: #ff4040; /* Красный */
    }

/* Карточки */
.employees-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.employee-card {
    margin-bottom: 20px;
}

.card {
    background: rgba(26, 26, 26, 0.3);
    color: #d4af37;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: scale(1.05);
    }

.card-title, .card-text {
    color: #d4af37;
}

/* Формы */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .input-field label {
        width: 150px;
        text-align: right;
        color: #d4af37;
    }

/* Модальные окна */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    color: #d4af37;
}

    .modal-content h4 {
        margin-top: 0;
        font-size: 1.2rem;
        font-weight: bold;
    }

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

/* Пагинация */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.custom-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination-item {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    background: #d4af37;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

    .pagination-item:hover:not(.disabled) {
        transform: translateY(-3px);
        background: #b8860b;
    }

    .pagination-item.active {
        background: #ffd700;
        box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    }

    .pagination-item.disabled {
        background: #666666;
        cursor: not-allowed;
        box-shadow: none;
    }

/* Футер */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #1a1a1a;
    padding: 10px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    text-align: center;
    color: #d4af37;
}

    .footer p, .footer a, .footer span {
        color: #d4af37;
    }

/* Логотип */
.logo {
    max-width: 60px;
    height: auto;
    margin-right: 10px;
}

/* Ошибки Blazor */
.blazor-error-boundary {
    background: #ff4040;
    padding: 1rem;
    color: #ffffff;
    border-radius: 8px;
}

    .blazor-error-boundary::after {
        content: "Произошла ошибка.";
    }
.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

    .status.processing {
        background-color: #ffc107; /* Желтый для "В обработке" */
        color: #000;
    }

    .status.shipped {
        background-color: #17a2b8; /* Голубой для "Отправлен" */
        color: #fff;
    }

    .status.delivered {
        background-color: #28a745; /* Зеленый для "Доставлен" */
        color: #fff;
    }

    .status.unknown {
        background-color: #6c757d; /* Серый для неизвестного статуса */
        color: #fff;
    }
/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .input-field {
        flex-direction: column;
        align-items: flex-start;
    }

        .input-field label {
            width: auto;
            text-align: left;
        }
}
