* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.title {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.main-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    animation: slideInUp 1s ease;
}

.form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    animation: fadeIn 0.6s ease;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e2e8f0;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-success {
    background: linear-gradient(45deg, #10b981, #34d399);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #ef4444, #f87171);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #6b7280, #9ca3af);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
}

.links {
    text-align: center;
    margin-top: 20px;
}

.social-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.social-link {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #93c5fd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Админ-панель */
.admin-info {
    text-align: center;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    background: none;
    border: none;
    color: #cbd5e0;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.stats-section {
    margin-bottom: 30px;
}

.stats-section h3 {
    margin-bottom: 20px;
    color: #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h4 {
    margin-bottom: 10px;
    color: #cbd5e0;
}

.stat-card span {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.registrations-list {
    margin-top: 20px;
}

.registration-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #8b5cf6;
}

.registration-actions {
    margin-top: 10px;
}

.event-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-actions {
    display: flex;
    gap: 10px;
}

.add-event-form {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Стили для радиокнопок мероприятий */
.events-label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.events-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-radio-item {
    position: relative;
    padding: 0;
}

.event-radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.event-radio-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #4a5568;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.event-radio-label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #718096;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.event-radio-label::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.event-radio-input:checked + .event-radio-label {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.event-radio-input:checked + .event-radio-label::before {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.2);
}

.event-radio-input:checked + .event-radio-label::after {
    transform: translateY(-50%) scale(1);
}

.event-radio-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #718096;
    transform: translateY(-2px);
}

.event-radio-input:focus + .event-radio-label {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Стили для ограничения мест */
.event-limit {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-left: auto;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-weight: normal;
}

/* Улучшенные стили для фокуса */
.form-group.focused label {
    color: #8b5cf6;
}

.form-group.focused input:not([type="radio"]) {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

input:invalid {
    border-color: #ef4444 !important;
}

input:valid {
    border-color: #10b981 !important;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes radioSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.event-radio-input:checked + .event-radio-label {
    animation: radioSelect 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    animation: slideInRight 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.success {
    background: linear-gradient(45deg, #10b981, #34d399);
}

.notification.error {
    background: linear-gradient(45deg, #ef4444, #f87171);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .event-radio-label {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .event-radio-label::before {
        width: 18px;
        height: 18px;
        margin-right: 12px;
    }
    
    .event-radio-label::after {
        left: 21px;
        width: 8px;
        height: 8px;
    }
    
    .event-limit {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .event-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .event-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.7rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    
    .links {
        display: flex;
        flex-direction: column;
    }
    
    .social-links {
        margin-top: 20px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* Дополнительные улучшения для форм */
.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Стили для состояния загрузки */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Стили для пустых состояний */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Стили для счетчиков в админке */
.counter-badge {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ffffff;
}

/* Стили для страницы отмены записей */
.registration-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.registration-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.registration-header h4 {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.1rem;
    flex: 1;
}

.registration-date {
    color: #a0aec0;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 15px;
}

.registration-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ticket-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticket-control label {
    color: #cbd5e0;
    font-weight: 500;
    margin: 0;
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
}

.btn-ticket {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ticket:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: scale(1.1);
}

.btn-ticket:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ticket-count {
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1rem;
}

.registration-actions {
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
}

.empty-state p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.empty-state small {
    font-size: 0.9rem;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .registration-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .registration-date {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .registration-details {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ticket-control {
        justify-content: space-between;
    }
    
    .registration-actions {
        justify-content: center;
    }
    
    .registration-actions .btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .registration-card {
        padding: 15px;
    }
    
    .ticket-control {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .ticket-actions {
        justify-content: center;
    }
    
    .registration-actions {
        flex-direction: column;
    }
}

/* Анимации для страницы отмены */
.registration-card {
    transition: all 0.3s ease;
}

.ticket-count {
    transition: all 0.3s ease;
}

/* Стили для кнопок управления билетами */
.btn-ticket {
    transition: all 0.2s ease;
}

.btn-ticket:active {
    transform: scale(0.95);
}

/* Анимация появления карточек */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.registration-card {
    animation: slideInFromLeft 0.4s ease;
}

.registration-card:nth-child(1) { animation-delay: 0.1s; }
.registration-card:nth-child(2) { animation-delay: 0.2s; }
.registration-card:nth-child(3) { animation-delay: 0.3s; }
.registration-card:nth-child(4) { animation-delay: 0.4s; }

/* Стили для измененных значений */
.ticket-count.changed {
    color: #8b5cf6 !important;
    font-weight: bold !important;
    transform: scale(1.1);
}

/* Стили для поля ввода билетов */
.ticket-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #4a5568;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.ticket-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.ticket-input.changed {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px;
}

.btn-ticket {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ticket:hover {
    background: linear-gradient(45deg, #7c3aed, #9333ea);
    transform: scale(1.1);
}

.btn-ticket:active {
    transform: scale(0.95);
}

.btn-ticket:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Уведомления разных типов */
.notification.info {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

/* Анимация для измененных полей */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.ticket-input.changed {
    animation: pulse 2s infinite;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .ticket-input {
        width: 70px;
        height: 36px;
        font-size: 14px;
        margin: 0 8px;
    }
    
    .btn-ticket {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .ticket-actions {
        gap: 6px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .registration-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .ticket-control {
        width: 100%;
        justify-content: space-between;
    }
    
    .registration-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .registration-actions .btn {
        width: 100%;
    }
}

/* Стили для информации о доступности мероприятий */
.event-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.event-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #e2e8f0;
}

.event-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.event-limit {
    font-size: 0.8rem;
    color: #a0aec0;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.event-availability {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.event-availability.available {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.event-availability.full {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.event-availability.unlimited {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Стили для заблокированных мероприятий */
.event-radio-label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: #4a5568;
}

.event-radio-label.disabled::before {
    border-color: #718096;
    background: rgba(255, 255, 255, 0.1);
}

.event-radio-label.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: #4a5568;
}

.event-radio-input:disabled + .event-radio-label {
    opacity: 0.6;
    cursor: not-allowed;
}

.event-radio-input:disabled + .event-radio-label:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: #4a5568;
}

/* Стили для страницы отмены - информация о доступности */
.registration-availability {
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.availability-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.availability-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.availability-progress {
    height: 100%;
    background: linear-gradient(45deg, #10b981, #34d399);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.availability-low {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

.availability-full {
    background: linear-gradient(45deg, #ef4444, #f87171);
}

/* Адаптивность */
@media (max-width: 768px) {
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .event-limit,
    .event-availability {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .event-name {
        font-size: 0.9rem;
    }
    
    .registration-availability {
        font-size: 0.8rem;
    }
}

/* Стили для прогресс-бара мероприятий */
.event-progress {
    margin-top: 8px;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #10b981, #34d399);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Цвета прогресс-бара в зависимости от заполненности */
.event-radio-item:nth-child(1) .progress-fill {
    background: linear-gradient(45deg, #10b981, #34d399);
}

.event-radio-item:nth-child(2) .progress-fill {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

.event-radio-item:nth-child(3) .progress-fill {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
}

.event-radio-item:nth-child(4) .progress-fill {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

/* Анимация для прогресс-бара */
@keyframes progressPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.progress-fill {
    animation: progressPulse 2s ease-in-out infinite;
}

/* Стили для заблокированных мероприятий */
.event-radio-input:disabled + .event-radio-label .progress-fill {
    background: linear-gradient(45deg, #ef4444, #f87171);
    animation: none;
}

/* Адаптивность для прогресс-бара */
@media (max-width: 768px) {
    .event-progress {
        margin-top: 6px;
    }
    
    .progress-bar {
        height: 4px;
    }
}

/* Стили для уведомлений разного типа */
.notification.info {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

.notification.warning {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

/* Стили для страницы отмены - улучшенные */
.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-limits {
    text-align: center;
}

.ticket-limits small {
    color: #a0aec0;
    font-size: 0.8rem;
}

.availability-hint {
    margin-top: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid #8b5cf6;
}

.availability-hint small {
    color: #cbd5e0;
    font-size: 0.8rem;
}

/* Стили для заблокированных кнопок */
.btn-ticket:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-ticket:disabled:hover {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    transform: none !important;
}

/* Анимация для измененных полей */
@keyframes inputHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.ticket-input.changed {
    animation: inputHighlight 2s ease;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .ticket-info {
        gap: 6px;
    }
    
    .ticket-limits small {
        font-size: 0.75rem;
    }
    
    .availability-hint {
        padding: 4px;
    }
    
    .availability-hint small {
        font-size: 0.75rem;
    }
}

/* Стили для красивой статистики мероприятий */
.events-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.event-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.event-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc);
}

.event-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.event-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.event-stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.event-stat-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 12px;
    white-space: nowrap;
}

.badge-unlimited {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: white;
}

.badge-available {
    background: linear-gradient(45deg, #10b981, #34d399);
    color: white;
}

.badge-warning {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white;
}

.badge-full {
    background: linear-gradient(45deg, #ef4444, #f87171);
    color: white;
}

.event-stat-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-number-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.stat-number-label {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 4px;
}

.stat-number-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.event-stat-progress {
    margin-bottom: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #cbd5e0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-success {
    background: linear-gradient(45deg, #10b981, #34d399);
}

.progress-info {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
}

.progress-warning {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

.progress-danger {
    background: linear-gradient(45deg, #ef4444, #f87171);
}

.event-stat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Сводная статистика */
.stats-summary {
    margin-top: 30px;
}

.summary-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.summary-card h4 {
    margin: 0 0 20px 0;
    color: #e2e8f0;
    font-size: 1.3rem;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.summary-label {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.summary-item.popular-event .summary-value {
    font-size: 1rem;
    line-height: 1.3;
}

/* Состояния пустоты и ошибок */
.empty-state, .error-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.empty-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p, .error-state p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.empty-state small, .error-state small {
    font-size: 0.9rem;
}

/* Цветовой текст */
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #3b82f6 !important; }
.text-muted { color: #a0aec0 !important; }

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-stat-card {
    animation: fadeInUp 0.6s ease;
}

.event-stat-card:nth-child(1) { animation-delay: 0.1s; }
.event-stat-card:nth-child(2) { animation-delay: 0.2s; }
.event-stat-card:nth-child(3) { animation-delay: 0.3s; }
.event-stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Адаптивность */
@media (max-width: 768px) {
    .events-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-stat-card {
        padding: 20px;
    }
    
    .event-stat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .event-stat-badge {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .event-stat-numbers {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-number-value {
        font-size: 1.3rem;
    }
    
    .summary-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .event-stat-card {
        padding: 16px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .event-stat-title {
        font-size: 1.1rem;
    }
    
    .stat-number-item {
        padding: 10px;
    }
}

/* Дополнительные стили для админ-панели */

/* Футер карточек мероприятий */
.event-stat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}

.btn-event-action {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-event-action:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

/* Сводные карточки */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.summary-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Карточка популярного мероприятия */
.popular-event-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.popular-event-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.popular-event-icon {
    font-size: 1.5rem;
}

.popular-event-header h4 {
    margin: 0;
    color: #e2e8f0;
}

.popular-event-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.popular-event-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.popular-event-stats {
    display: flex;
    gap: 16px;
}

.popular-event-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #cbd5e0;
}

/* Заголовок регистраций */
.registrations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.registrations-header h4 {
    margin: 0;
    color: #e2e8f0;
}

.registrations-actions {
    display: flex;
    gap: 12px;
}

/* Таблица регистраций */
.registrations-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.registration-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.registration-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.registration-info {
    flex: 1;
}

.registration-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.registration-number {
    color: #a0aec0;
    font-size: 0.9rem;
    min-width: 30px;
}

.registration-name {
    color: #ffffff;
    font-size: 1.1rem;
}

.registration-tickets {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.registration-details {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #a0aec0;
}

.registration-event {
    color: #cbd5e0;
}

.registration-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .registration-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .registration-actions {
        justify-content: flex-end;
    }
    
    .summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .popular-event-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .popular-event-stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-icon {
        font-size: 1.5rem;
    }
    
    .summary-value {
        font-size: 1.4rem;
    }
}

/* Стили для кнопки записаться по центру */
.form-actions {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-large::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;
}

.btn-large:hover::before {
    left: 100%;
}

.btn-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

/* Анимация пульсации для кнопки */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-large {
    animation: pulse 2s infinite;
}

/* Стили для улучшенной формы */
.form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.form-group {
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #4a5568;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8b5cf6;
    background