* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --success: #4cc9f0;
    --warning: #f72585;
    --danger: #e63946;
    --disabled: #95a5a6;
    --excel: #217346;
    --csv: #ff6b35;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --border: #e9ecef;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--gray);
}

.user-group {
    font-size: 0.75rem;
    color: var(--gray);
    background: var(--light);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 0.25rem;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--light);
    color: var(--danger);
}

/* Основные экраны */
.screen {
    display: none;
    min-height: calc(100vh - 80px);
}

.screen.active {
    display: block;
}

/* Экран авторизации */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.login-header p {
    color: var(--gray);
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    position: absolute;
    right: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-error {
    background: #fee;
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border-left: 4px solid var(--danger);
}

.system-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--gray);
    border-left: 4px solid var(--primary);
}

.system-info i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.api-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* Экран загрузки */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-container p {
    color: white;
    font-size: 1.1rem;
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #d1343e;
    transform: translateY(-2px);
}

/* Панель администратора */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.panel-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.stat-icon.primary { background: var(--primary); }
.stat-icon.success { background: var(--success); }
.stat-icon.warning { background: var(--warning); }

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--gray);
    font-weight: 500;
}

/* Секции */
.surveys-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Сетка анкет */
.surveys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.survey-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.survey-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.survey-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.survey-status-badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.survey-status-badge.active {
    background: var(--success);
}

.survey-status-badge.inactive {
    background: var(--gray-light);
}

.survey-title {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-right: 1rem;
}

.survey-actions-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 100;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-item.delete-survey-btn:hover {
    color: var(--danger);
}

.survey-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.survey-footer {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.survey-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: var(--radius);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--light);
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--danger);
}

.modal form {
    padding: 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--light);
    border-radius: 0 0 var(--radius) var(--radius);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Опции экспорта */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.export-option {
    position: relative;
}

.export-option input[type="radio"] {
    display: none;
}

.export-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.export-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.export-option label i {
    font-size: 2rem;
    width: 40px;
    text-align: center;
}

.export-option label i.fa-file-excel {
    color: var(--excel);
}

.export-option label i.fa-file-csv {
    color: var(--csv);
}

.export-option label div {
    display: flex;
    flex-direction: column;
}

.export-option label strong {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.export-option label span {
    font-size: 0.875rem;
    color: var(--gray);
}

.export-settings {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
}

.export-settings .form-group {
    margin-bottom: 1rem;
}

.export-settings label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.export-settings input[type="checkbox"] {
    width: auto;
}

/* Вопросы */
.questions-section {
    margin: 2rem 0;
}

.question-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.question-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.options-list {
    margin: 1rem 0;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.option-input {
    flex: 1;
    border: none;
    padding: 0.5rem;
    background: transparent;
}

.option-input:focus {
    outline: none;
    box-shadow: none;
}

.option-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray);
    background: var(--light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.option-status i {
    font-size: 0.7rem;
}

.remove-option-btn {
    padding: 0.5rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-option-btn:hover {
    background: #d1343e;
}

.option-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: var(--dark);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.tooltip {
    color: var(--gray);
    cursor: help;
    transition: color 0.3s ease;
}

.tooltip:hover {
    color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .panel-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .surveys-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .survey-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .section-actions {
        width: 100%;
        justify-content: space-between;
    }

    .export-options label {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.survey-card,
.stat-card,
.login-card {
    animation: fadeIn 0.5s ease-out;
}

/* Специфические стили для экранов */
#admin-panel,
#student-panel {
    padding: 2rem 0;
}

.survey-container,
.results-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

/* Стили для результатов */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.results-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.results-table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.results-table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
    position: sticky;
    top: 0;
}

.results-table tr:hover {
    background: rgba(67, 97, 238, 0.05);
}

.no-data {
    text-align: center;
    color: var(--gray);
    padding: 3rem !important;
}

.no-data i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Форма прохождения анкеты */
.take-survey-form {
    max-width: 800px;
    margin: 0 auto;
}

.survey-question {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.question-header {
    margin-bottom: 1.5rem;
}

.question-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.question-hint {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-label:hover:not(.disabled) {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.option-label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--light);
}

.option-label.disabled:hover {
    border-color: var(--border);
    background: var(--light);
}

.option-label.disabled .option-text {
    color: var(--gray);
}

.option-label.disabled::after {
    content: 'Выбрано другим участником';
    position: absolute;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--danger);
    font-style: italic;
}

.option-label input {
    margin: 0;
}

.option-text {
    flex: 1;
}

.survey-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    z-index: 3000;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    border-left-color: var(--success);
}

.notification-warning {
    border-left-color: var(--warning);
}

.notification-error {
    border-left-color: var(--danger);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Стили для исчезающих вариантов */
.option-exhausted {
    background-color: #ffeaea;
    border-color: #ffcccc;
}

.option-exhausted .remaining-count {
    color: var(--danger);
    font-weight: bold;
}

.option-available {
    background-color: #e8f5e9;
    border-color: #c8e6c9;
}

.option-available .remaining-count {
    color: var(--success);
    font-weight: bold;
}

.option-label.disabled {
    background: repeating-linear-gradient(
        45deg,
        #f5f5f5,
        #f5f5f5 10px,
        #e8e8e8 10px,
        #e8e8e8 20px
    );
    border-color: #ddd;
}