/* Admin Panel Styles - Extracted from admin.html */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.admin-container {
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 20px;
    overflow-x: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
}

.admin-header p {
    color: #666;
    margin: 5px 0 0;
}

.admin-header .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.hamburger + .admin-nav {
    flex: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin-right: 15px;
}

.admin-nav button {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(100, 83, 2, 0.2);
    border-radius: 12px;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin-right: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #555;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.admin-nav button:hover,
.admin-nav button.active {
    color: white;
    border-color: #FFD407;
    background: linear-gradient(135deg, #FFD407, #BFB35C);
}

.admin-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.admin-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.panel-title {
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #7C90B4, #A2B3D1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 83, 2, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.hamburger {
    display: none;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 83, 2, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(30, 60, 114, 0.1);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7C90B4;
    box-shadow: 0 0 0 3px rgba(124, 144, 180, 0.1);
    background: white;
}

.form-group textarea {
    height: 140px;
    resize: vertical;
    font-family: inherit;
}

.schedule-list,
.registration-list {
    max-height: 500px;
    overflow-y: auto;
}

.schedule-item,
.registration-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(100, 83, 2, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

.schedule-header,
.reg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background: rgba(100, 83, 2, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
}

.schedule-header:hover,
.reg-header:hover {
    background: rgba(100, 83, 2, 0.1);
}

.schedule-info,
.reg-info {
    flex: 1;
    min-width: 0;
}

.schedule-title,
.reg-title {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    word-break: break-word;
}

.schedule-meta,
.reg-meta {
    color: #666;
    font-size: 13px;
}

.schedule-actions,
.reg-actions {
    display: flex;
    gap: 10px;
}

.schedule-details,
.reg-details {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(100, 83, 2, 0.05);
    border-radius: 8px;
}

.schedule-details.expanded,
.reg-details.expanded {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
    color: #666;
    word-break: break-word;
}

.detail-row strong {
    color: #333;
    min-width: 120px;
    flex-shrink: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.price-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(100, 83, 2, 0.1);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
}

.price-card h4 {
    color: #7C90B4;
    font-size: 18px;
    margin-bottom: 15px;
}

.price-amount {
    font-size: 32px;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(100, 83, 2, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
}

.promo-content {
    flex: 1;
}

.promo-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.promo-desc {
    color: #666;
    font-size: 14px;
}

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

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    background: #7FFFD4;
    color: #333;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    animation: slideInRight 0.3s ease;
}

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

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

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: rgba(124, 144, 180, 0.2);
    color: #7C90B4;
}

.badge-expired {
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
}

.sync-status {
    font-size: 11px;
    color: #666;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .admin-nav {
        position: fixed;
        left: 0;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 30px 20px;
        border-radius: 0;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        /* Hide navigation buttons by default on mobile */
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .admin-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1000;
    }

     .admin-nav button {
         width: 100%;
         text-align: center;
         padding: 15px 30px;
         border-radius: 15px;
     }

     .hamburger {
         display: flex;
        flex-direction: column;
        cursor: pointer;
        background: none;
        border: none;
        padding: 8px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: #555;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

     .hamburger.active span:nth-child(3) {
         transform: rotate(45deg) translate(-5px, -6px);
     }

      .admin-container {
          margin-top: 120px;
          padding: 15px;
      }

/* Ensure tables/code don't overflow */
.schedule-list,
.registration-list,
.promo-item,
.price-card {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.reg-meta,
.schedule-meta {
    word-break: break-word;
}

    .admin-container {
        margin-top: 120px;
        padding: 15px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .panel-title {
        font-size: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .registration-item,
    .schedule-item,
    .promo-item {
        flex-direction: column;
        gap: 10px;
    }

    .reg-actions,
    .schedule-actions {
        align-self: stretch;
        justify-content: flex-end;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .panel-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 16px 18px;
    }
}

/* Modal styles */
.modal-title {
    color: #333;
    font-size: 20px;
    margin: 0;
}

/* Schedule filter form */
.filter-form {
    margin-bottom: 30px;
}

/* Inline utility classes */
.text-link {
    color: #7C90B4;
    text-decoration: none;
}

.text-link:hover {
    color: #FFD407;
    text-decoration: underline;
}

#logoutBtn {
    margin-left: 10px;
}

/* Login Modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-modal-content h2 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.login-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.login-form-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form-modal .form-group {
    margin-bottom: 0;
}

.login-form-modal .form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(30, 60, 114, 0.1);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.login-input:focus {
    outline: none;
    border-color: #7C90B4;
    box-shadow: 0 0 0 3px rgba(124, 144, 180, 0.1);
    background: white;
}

.login-submit-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #7C90B4, #A2B3D1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 83, 2, 0.3);
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    color: #FF6B6B;
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    display: none;
}

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-body {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#loginError {
    color: #FF6B6B;
    text-align: center;
    margin-top: 15px;
    display: none;
    font-weight: 600;
}

/* Form utility */
.form-grid-single {
    grid-template-columns: 1fr;
}

/* Price card button spacing */
.price-card .btn {
    margin-top: 15px;
}

/* Promotion meta text */
.promo-meta {
    margin-top: 5px;
    font-size: 12px;
    color: #94a3b8;
}

.description-text {
    font-size: 13px;
    color: #94a3b8;
    margin: 8px 0;
}

/* Utility classes */
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 15px; }
.flex { display: flex; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.align-end { display: flex; align-items: flex-end; }
.justify-end { display: flex; justify-content: flex-end; }
.h-42 { height: 42px; }

/* Hide login form styles that are no longer used */
.login-form {
    display: none !important;
}


