/* Импорт современного шрифта */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===============================
   СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #050712 0%, #764ba2 100%)
}

/* ===============================
   АНИМАЦИИ
   =============================== */
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-30px) scale(0.95); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   ОБЩИЕ СТИЛИ КОНТЕЙНЕРОВ
   =============================== */
.auth-container, .first-login-modal, .status-info-modal, .modal-content, .data-table-container,
.news-widget, .modern-card, .settings-container, .feature-card, .vendor-feature-card,
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    padding: 10px;
}
.queue-status-card, .department-queue-card, .info-card, .queue-info-card, .user-status-section, .available-slots-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.auth-container:hover, .info-card:hover, .modern-card:hover,
.feature-card:hover, .vendor-feature-card:hover, .stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ===============================
   ФОРМЫ АВТОРИЗАЦИИ И РЕГИСТРАЦИИ
   =============================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.auth-container {
    padding: 40px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.login-container { max-width: 400px; }
.register-container { max-width: 600px; }

.auth-title {
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-input, .form-select, .form-textarea, .filter-group select,
.filter-group input, .form-group input, .form-group textarea,
.form-group select, .date-selector input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder, .form-textarea::placeholder,
.filter-group input::placeholder, .form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus, .form-select:focus, .form-textarea:focus,
.filter-group select:focus, .filter-group input:focus,
.form-group input:focus, .form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.form-input.error, .form-select.error {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.form-select option {
    background-color: #1f2937;
    color: white;
}

.checkbox-group, .custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-checkbox {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.custom-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.custom-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.auth-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-button:hover::before { left: 100%; }

.auth-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.auth-button:active { transform: translateY(0); }
.auth-button.loading { cursor: not-allowed; opacity: 0.7; }

.success-message, .error-message, .message-container {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
}

.success-message, .message-container.success, .alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.error-message, .message-container.error, .alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.message-container.warning, .alert-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fcd34d;
}

.field-error {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.form-links {
    text-align: center;
    margin-top: 25px;
}

.form-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: white;
    text-decoration: underline;
}

/* ===============================
   ДАШБОРД
   =============================== */
.dashboard-container, .dashboard-page {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-header p, .user-details p, .topbar-left p,
.feature-meta, .queue-counter, .queue-status,
.info-label, .info-block p, .booking-status,
.no-features p, .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.user-profile {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details h3, .card-title, .card-header h3,
.feature-title, .vendor-feature-card .feature-title,
.stat-number, .page-header h1, .modal-header h3,
.status-info-modal .modal-header h3, .time-group h4,
.user-status-section h3, .available-slots-section h3,
.info-block h4, .status-item strong {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-nav { padding: 15px 0; }
.nav-section { margin-bottom: 25px; }

.nav-section-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 2px 10px;
    border-radius: 8px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.nav-item.active, .dashboard-nav .nav-item.features-active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    margin-left: 7px;
}

.nav-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.nav-item i.fa-lightbulb { color: #fbbf24; }
.nav-item i.fa-road { color: #a855f7; }

.sidebar::-webkit-scrollbar,
.lunch-slots-grid::-webkit-scrollbar,
.department-lunch-list::-webkit-scrollbar,
.queue-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.lunch-slots-grid::-webkit-scrollbar-track,
.department-lunch-list::-webkit-scrollbar-track,
.queue-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb,
.lunch-slots-grid::-webkit-scrollbar-thumb,
.department-lunch-list::-webkit-scrollbar-thumb,
.queue-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.lunch-slots-grid::-webkit-scrollbar-thumb:hover,
.department-lunch-list::-webkit-scrollbar-thumb:hover,
.queue-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    min-height: 100vh;
}

.topbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-button {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.logout-btn:hover { background: rgba(239, 68, 68, 0.3); }

.content-area { padding: 30px; }

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.info-card {
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 8px;
    padding: 1px 10px;
}

.card-content strong { color: white; }

.data-table-container { padding: 25px; overflow: hidden; }

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    color: rgba(255, 255, 255, 0.8);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-badge, .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active, .badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-inactive, .badge-low {
    background: rgba(156, 163, 175, 0.2);
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.badge-new, .badge-medium {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-roadmap {
    background: rgba(168, 85, 247, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-progress, .badge-high {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-rejected, .badge-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-category {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    color: white;
    cursor: pointer;
}

/* ===============================
   МОДАЛЬНОЕ ОКНО ПЕРВОЙ АВТОРИЗАЦИИ
   =============================== */
.modal-overlay, .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.first-login-modal {
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 0;
}

.welcome-message {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.welcome-message p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.first-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #ff6b6b;
    font-weight: bold;
    margin-left: 3px;
}

.modal-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* ===============================
   МОДУЛЬ НОВОСТЕЙ
   =============================== */
.news-widget { padding: 20px; margin-bottom: 25px; }

.news-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-widget-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.news-item-compact {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.news-item-compact:last-child { border-bottom: none; }

.news-item-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 8px;
}

.news-item-title {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
}

.more-news-link {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.more-news-link:hover { text-decoration: underline; }

.break-queue-container { margin: 0 auto; padding: 20px; }

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-info, .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 25px;
}

.status-item, .info-item, .info-item-compact {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.status-item:hover, .info-item:hover, .info-item-compact:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.status-item label, .info-content label, .info-item label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.status-item span, .info-content span, .info-item span {
    color: white;
    font-weight: 600;
}

.info-item.limit-info {
    grid-column: 1 / -1;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.info-icon, .info-item-compact .info-icon {
    font-size: 1.2rem;
    min-width: 20px;
}

.info-content { flex: 1; }

.info-content label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.queue-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.queue-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0 25px 25px;
}

.queue-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 18px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.queue-item.on-break {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.queue-position {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

.queue-user {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid;
    animation: slideDown 0.4s ease-out;
}

.alert::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.1rem;
}

.alert-success::before { content: "\f058"; color: #10b981; }
.alert-error::before { content: "\f06a"; color: #ef4444; }
.alert-warning::before { content: "\f071"; color: #f59e0b; }

.btn, .topbar-button, .vote-btn, .status-btn, .btn-sm {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover, .vote-btn:hover, .status-btn:hover, .btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary, .btn-join {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-success, .btn-break {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-warning, .btn-complete {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-secondary, .btn-refresh {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.text-green { color: #10b981; }
.text-yellow { color: #f59e0b; }
.text-red { color: #ef4444; }

.animated-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.queue-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #6b7280;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.status-indicator.waiting .status-dot {
    background: #3b82f6;
    animation: pulse 2s infinite;
}

.status-indicator.on-break .status-dot { background: #10b981; }
.status-dot.online { background: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }
.status-dot.away { background: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
.status-dot.offline { background: #6b7280; box-shadow: 0 0 12px rgba(107, 114, 128, 0.4); }

.user-status-content, .user-status-content {
    padding: 25px;
}

.status-visual {
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.info-status-grid {
    display: grid;
    grid-template-columns: 0.7fr 1fr 0.7fr;
    gap: 25px;
    margin-bottom: 30px;
}

.info-content-compact { padding: 20px; }

.info-item-compact {
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.info-item-compact.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-text > span:last-child {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.queue-status-card .status-visual { min-height: 60px; margin-bottom: 15px; }

.queue-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-badge, .info-badge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-badge-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.info-badge:hover, .info-badge-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1);
}

.info-badge-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.tooltip {
    position: absolute;
    bottom: 130%;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 6px solid transparent;
    border-top-color: rgba(30, 30, 30, 0.95);
}

.info-badge:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip .status-item { margin-bottom: 6px; }
.tooltip .status-item:last-child { margin-bottom: 0; }

.status-info-modal {
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
}

.status-info-modal .modal-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 25px;
}

.status-info-modal .modal-content {
    padding: 0 25px 25px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.status-explanation { margin-bottom: 25px; }

.status-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-visual { gap: 12px; }

.status-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.additional-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.info-block {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.info-block:last-child { margin-bottom: 0; }

.info-block h4 i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

body.modal-open { overflow: hidden; }

.modal-overlay[aria-hidden="true"] { display: none !important; }

.status-info-modal:focus { outline: none; }

.status-info-modal.closing { animation: modalSlideOut 0.3s ease-in forwards; }

.lunch-sections {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.lunch-controls { margin-bottom: 20px; }

.date-selector label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-right: 10px;
}

.lunch-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.lunch-slot {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.lunch-slot.available {
    border-color: rgba(34, 197, 94, 0.4);
    cursor: pointer;
}

.lunch-slot.available:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
}

.lunch-slot.full {
    border-color: rgba(239, 68, 68, 0.4);
    opacity: 0.7;
}

.slot-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.shift-type {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.slot-capacity {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.book-lunch-btn {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    width: 100%;
}

.book-lunch-btn:hover { background: rgba(34, 197, 94, 0.3); }

.slot-full {
    color: rgba(239, 68, 68, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
}

.user-status-section { grid-row: span 2; }

.user-lunch-status {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.user-lunch-status.booked { border: 2px solid rgba(34, 197, 94, 0.4); }

.user-lunch-status.active {
    border: 2px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

.user-lunch-status.none {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.user-lunch-status.none p {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.user-lunch-status h4 {
    color: white;
    margin-bottom: 10px;
}

.user-lunch-status p { margin-bottom: 5px; }

.status-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.department-lunch-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 20px;
}

.time-group { margin-bottom: 20px; }

.time-group ul { list-style: none; padding: 0; }

.lunch-booking {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.9rem;
}

.lunch-booking.active {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid rgba(59, 130, 246, 0.6);
}

.lunch-booking.booked {
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid rgba(34, 197, 94, 0.6);
}

.lunch-booking.completed {
    background: rgba(156, 163, 175, 0.08);
    border-left: 3px solid rgba(156, 163, 175, 0.6);
    opacity: 0.8;
}

.lunch-booking.cancelled {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid rgba(239, 68, 68, 0.6);
    opacity: 0.7;
}

.person-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.no-slots, .no-bookings {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    font-style: italic;
}

.lunch-reminder, .lunch-time {
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
}

.lunch-reminder {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fcd34d;
    animation: pulse 2s infinite;
}

.lunch-time {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    animation: pulse 1.5s infinite;
}

.auto-note {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
}

.lunch-overdue {
    background: rgba(239, 68, 68, 0.3);
    border: 2px solid rgba(239, 68, 68, 0.6);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: 600;
    animation: shake 0.5s infinite alternate;
}

.user-lunch-status.overdue {
    border: 2px solid rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.1);
}

.user-lunch-status.time-now {
    border: 2px solid rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.1);
    animation: pulse 1s infinite;
}

.slot-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

/* ===============================
   МОДУЛЬ ПРЕДЛОЖЕНИЙ
   =============================== */
.features-container, .vendor-features-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 25px;
    animation: fadeInUp 0.6s ease-out;
}

.feature-voting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-height: 120px;
    justify-content: center;
}

.vote-btn {
    padding: 8px 12px;
    min-width: 40px;
    height: 35px;
}

.vote-btn.active, .vote-btn.vote-up.active {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.vote-btn.vote-down.active {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.vote-btn.loading {
    animation: pulse 1s infinite;
    pointer-events: none;
}

.vote-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 35px;
    text-align: center;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.feature-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-meta > div, .vendor-feature-card .feature-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-author, .feature-date, .feature-votes {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vendor-notes, .current-vendor-notes {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.vendor-notes h4, .current-vendor-notes h5 {
    color: #c4b5fd;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vendor-notes p, .current-vendor-notes p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.no-features {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.no-features i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.4);
}

.no-features h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-content {
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInDown 0.3s ease-out;
}

.status-controls, .vendor-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.status-btn-roadmap, .btn-roadmap {
    background: rgba(168, 85, 247, 0.3);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.5);
}

.status-btn-progress, .btn-progress {
    background: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.status-btn-implement, .btn-implement {
    background: rgba(34, 197, 94, 0.3);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.status-btn-reject, .btn-reject {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.message-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.settings-container { padding: 30px; }

.settings-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.loading-indicator i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

.settings-fields { animation: fadeIn 0.3s ease-out; }

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-spinner { display: none; }

.dashboard-nav .nav-item[href*="features"]:hover {
    background: rgba(59, 130, 246, 0.1);
}

.dashboard-nav .nav-item[href*="roadmap"]:hover {
    background: rgba(168, 85, 247, 0.1);
}

/* ===============================
   АДАПТИВНОСТЬ
   =============================== */
@media (max-width: 1200px) {
    .lunch-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .lunch-slots-grid, .department-lunch-list {
        max-height: 300px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease, width 0.3s ease;
    }
    .sidebar.active { transform: translateX(0); }
    .main-content {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }
    .mobile-toggle { display: block; }
    .content-area { padding: 20px; }
    .topbar { padding: 15px 20px; padding-left: 60px; }
}

@media (max-width: 768px) {
    .form-row, .settings-form .form-row, .feature-meta,
    .vendor-feature-card .feature-meta {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 15px;
    }
    .sidebar, .main-content { margin-left: 0; }
    .dashboard-cards { grid-template-columns: 1fr; gap: 20px; }
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-left: 60px;
    }
    .topbar-left h1 { font-size: 1.3rem; }
    .topbar-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    .info-card, .data-table-container { padding: 15px; }
    .card-title, .status-item strong { font-size: 1rem; }
    .data-table { min-width: 600px; }
    .data-table th, .data-table td { padding: 10px; font-size: 0.9rem; }
    .queue-header { flex-direction: column; gap: 15px; align-items: flex-start; }
    .info-grid, .info-status-grid { grid-template-columns: 1fr; gap: 12px; }
    .queue-item { grid-template-columns: 40px 1fr; gap: 12px; }
    .queue-status { grid-column: 1 / -1; margin-top: 8px; justify-self: start; }
    .queue-actions, .modal-actions, .vendor-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .lunch-slots-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
    .lunch-controls { margin-bottom: 15px; }
    .date-selector { display: flex; flex-direction: column; gap: 8px; }
    .date-selector label { font-size: 0.9rem; }
    .date-selector input[type="date"] { max-width: 200px; }
    .lunch-slot { padding: 10px; }
    .slot-time { font-size: 1rem; }
    .shift-type { font-size: 0.75rem; }
    .user-status-section h3, .available-slots-section h3 { font-size: 1.1rem; }
    .page-header { flex-direction: column; gap: 20px; align-items: flex-start; }
    .filters-container { flex-direction: column; }
    .filter-group select, .filter-group input { min-width: 100%; }
    .feature-card { grid-template-columns: 1fr; gap: 15px; }
    .feature-voting { flex-direction: row; min-height: auto; padding: 15px; }
    .feature-badges { justify-content: flex-start; }
    .status-info-modal { width: 95%; max-height: 85vh; }
    .status-info-modal .modal-header { padding: 15px 20px; }
    .status-info-modal .modal-header h3 { font-size: 1.1rem; }
    .status-info-modal .modal-content { padding: 20px; }
    .status-item { padding: 12px; }
    .status-visual { gap: 10px; }
    .status-item p { font-size: 0.9rem; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .vendor-feature-card .feature-header { flex-direction: column; gap: 15px; }
}

@media (min-width: 701px) and (max-width: 767px) {
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
    .topbar { flex-direction: row; align-items: center; }
    .topbar-right { width: auto; flex-wrap: nowrap; }
}

@media (max-width: 700px) {
    .sidebar { width: 220px; transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
}

@media (max-width: 600px) {
    .first-login-modal { padding: 30px 25px; margin: 10px; }
    .modal-header h2 { font-size: 1.5rem; }
    .welcome-subtitle { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .auth-page { padding: 15px; }
    .auth-container { padding: 30px 25px; max-width: 100%; }
    .auth-title { font-size: 1.6rem; }
    .sidebar { width: 100%; }
    .topbar-left h1 { font-size: 1.2rem; }
    .topbar-button { padding: 8px 12px; font-size: 0.8rem; }
    .info-card { padding: 15px; }
    .card-icon { width: 35px; height: 35px; font-size: 1rem; }
    .data-table th, .data-table td { padding: 8px; font-size: 0.8rem; }
    .info-status-grid { gap: 15px; }
    .info-content-compact { padding: 15px; }
    .stats-container, .feature-header { grid-template-columns: 1fr; }
    .feature-badges { justify-content: flex-start; }
}

/* Стили для админского управления очередью */
.lunch-admin-controls {
    display: flex;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.all-lunch-queue .department-section {
    margin-bottom: 25px;
}

.all-lunch-queue .department-section h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.all-lunch-queue .queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.all-lunch-queue .user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.all-lunch-queue .user-info strong {
    color: white;
    font-size: 0.95rem;
}

.all-lunch-queue .internal-number {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.all-lunch-queue .lunch-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.all-lunch-queue .time {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.all-lunch-queue .status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.all-lunch-queue .status-booked {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.all-lunch-queue .status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.all-lunch-queue .status-completed {
    background: rgba(107, 114, 128, 0.2);
    color: #d1d5db;
}

.all-lunch-queue .shift-type {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.all-lunch-queue .remove-user-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.no-queue {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Компактная очередь на обед */
.lunch-queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.lunch-queue-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.lunch-queue-item.status-booked {
    border-left-color: #3b82f6;
}

.lunch-queue-item.status-active {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.lunch-queue-item.status-completed {
    border-left-color: #6b7280;
    opacity: 0.7;
}

.lunch-item-info {
    flex: 1;
}

.lunch-user-name {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.internal-num {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-left: 8px;
}

.lunch-item-details {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lunch-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 600;
}

.lunch-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.btn-remove-lunch {
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.btn-remove-lunch:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    transform: scale(1.05);
}

.no-lunch-list {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .lunch-queue-item {
        padding: 12px 10px;
    }
    
    .lunch-user-name {
        font-size: 0.85rem;
    }
    
    .lunch-item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .btn-remove-lunch {
        width: 32px;
        height: 32px;
    }
}

.btn-remove-break {
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.btn-remove-break:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    transform: scale(1.05);
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.queue-item.waiting {
    border-left-color: #3b82f6;
}

.queue-item.on-break {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Стили для информации о последнем перерыве */
.last-break-container {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border-left: 3px solid rgba(59, 130, 246, 0.6);
}

.last-break-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.last-break-time {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.break-availability {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    align-self: flex-start;
}

.break-availability.available {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.break-availability.waiting {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.first-break {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 0.85rem;
}

/* Стили для информации в очереди */
.queue-last-break {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.queue-last-break.first-break {
    color: rgba(251, 191, 36, 0.8);
    font-style: italic;
}

/* Стили для игр */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
}

.game-2048 {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
}

.game-tile {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    transition: all 0.15s ease-in-out;
}

.game-tile.tile-2 { background: rgba(238, 228, 218, 0.8); color: #776e65; }
.game-tile.tile-4 { background: rgba(237, 224, 200, 0.8); color: #776e65; }
.game-tile.tile-8 { background: rgba(242, 177, 121, 0.8); color: #f9f6f2; }
.game-tile.tile-16 { background: rgba(245, 149, 99, 0.8); color: #f9f6f2; }
.game-tile.tile-32 { background: rgba(246, 124, 95, 0.8); color: #f9f6f2; }
.game-tile.tile-64 { background: rgba(246, 94, 59, 0.8); color: #f9f6f2; }
.game-tile.tile-128 { background: rgba(237, 207, 114, 0.8); color: #f9f6f2; font-size: 20px; }
.game-tile.tile-256 { background: rgba(237, 204, 97, 0.8); color: #f9f6f2; font-size: 20px; }
.game-tile.tile-512 { background: rgba(237, 200, 80, 0.8); color: #f9f6f2; font-size: 20px; }
.game-tile.tile-1024 { background: rgba(237, 197, 63, 0.8); color: #f9f6f2; font-size: 18px; }
.game-tile.tile-2048 { background: rgba(237, 194, 46, 0.8); color: #f9f6f2; font-size: 18px; }

.game-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.game-controls {
    margin: 20px 0;
}

.game-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.game-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.leaderboard-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.rank-medal {
    font-size: 20px;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

@media (max-width: 768px) {
    .game-board {
        grid-gap: 8px;
        padding: 12px;
    }
    
    .game-tile {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
    
    .game-tile.tile-128,
    .game-tile.tile-256,
    .game-tile.tile-512 {
        font-size: 16px;
    }
    
    .game-tile.tile-1024,
    .game-tile.tile-2048 {
        font-size: 14px;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-box {
        margin: 0;
    }
    
    .game-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .game-button {
        margin: 0;
        width: 100%;
    }
}

/* Дополнительные стили для игровых модальных окон */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 25px;
}

/* Стили для навигационного элемента игры */
.nav-item i.fa-gamepad {
    color: #10b981;
}

.nav-item:hover i.fa-gamepad {
    color: #34d399;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

