/* Schedule Settings Button */
.schedule-settings-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.schedule-settings-btn:hover {
    border-color: #814ac8;
    background: rgba(129, 74, 200, 0.1);
}

.schedule-settings-btn svg {
    width: 20px;
    height: 20px;
}

/* Schedule Settings Dialog */
.schedule-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-dialog.active {
    display: flex;
    opacity: 1;
}

.schedule-dialog-content {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    width: 90vw;
    height: 90vh;
    position: relative;
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Dialog Header */
.schedule-dialog-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
}

.schedule-close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.schedule-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) rotate(90deg);
}

.schedule-title-dialog {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: left;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Tabs */
.schedule-tabs {
    flex-shrink: 0;
    padding: 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.schedule-tabs .tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: Figtree, "Figtree Placeholder", sans-serif;
}

.schedule-tabs .tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.schedule-tabs .tab-btn.active {
    color: #814ac8;
    border-bottom-color: #814ac8;
}

/* Dialog Body */
.schedule-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    scrollbar-width: thin;
    scrollbar-color: rgba(129, 74, 200, 0.5) rgba(255, 255, 255, 0.1);
}

.schedule-dialog-body::-webkit-scrollbar {
    width: 6px;
}

.schedule-dialog-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.schedule-dialog-body::-webkit-scrollbar-thumb {
    background: rgba(129, 74, 200, 0.5);
    border-radius: 0;
}

.schedule-dialog-body::-webkit-scrollbar-thumb:hover {
    background: rgba(129, 74, 200, 0.8);
}

/* Dialog Footer */
.schedule-dialog-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: #000;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

/* Forms */
.schedule-config-form,
.new-upcoming-event-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label:not(.checkbox-label):not(.radio-label) {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
}

.form-group small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #fff;
    font-size: 14px;
    font-family: Figtree, "Figtree Placeholder", sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #814ac8;
    background: rgba(255, 255, 255, 0.05);
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.color-picker-input {
    width: 50px;
    max-width: 50px;
    min-width: 50px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    cursor: pointer;
}

.color-text-input {
    flex: 1;
    font-family: monospace;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #814ac8;
    cursor: pointer;
}

/* Checkbox Label */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #814ac8;
    cursor: pointer;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Buttons */
.btn-schedule-dialog {
    padding: 8px 16px;
    background: #814ac8;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: Figtree, "Figtree Placeholder", sans-serif;
    white-space: nowrap;
}

.btn-schedule-dialog:hover {
    background: #9b66d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(129, 74, 200, 0.3);
}

.btn-schedule-dialog:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-schedule-dialog-secondary {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: Figtree, "Figtree Placeholder", sans-serif;
    white-space: nowrap;
}

.btn-schedule-dialog-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Messages */
.schedule-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 0;
    padding: 10px 12px;
    color: #ff6b6b;
    font-size: 13px;
    text-align: center;
}

.schedule-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 0;
    padding: 10px 12px;
    color: #6bff6b;
    font-size: 13px;
    text-align: center;
}

/* Event Image Upload */
.upcoming-event-image-upload-area {
    position: relative;
}

.upcoming-event-drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.upcoming-event-drop-zone:hover,
.upcoming-event-drop-zone.drag-active {
    border-color: rgba(129, 74, 200, 0.5);
    background: rgba(129, 74, 200, 0.05);
}

.upcoming-event-image-preview {
    position: relative;
    margin-top: 15px;
}

.upcoming-event-image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-remove-image:hover {
    background: rgba(255, 0, 0, 1);
}

/* Events List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 200px;
}

.schedule-list-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 20px;
    font-size: 14px;
}

.upcoming-event-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.upcoming-event-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

.upcoming-event-item-image {
    width: 100px;
    height: 100px;
    border-radius: 0;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.upcoming-event-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upcoming-event-item-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.upcoming-event-item-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.upcoming-event-item-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.upcoming-event-item-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: #814ac8;
}

.upcoming-event-item-price {
    color: #814ac8;
    font-weight: 600;
}

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

.btn-edit-upcoming-event,
.btn-delete-upcoming-event {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-edit-upcoming-event:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-delete-upcoming-event {
    color: #ff6b6b;
    border-color: rgba(255, 0, 0, 0.3);
}

.btn-delete-upcoming-event:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.5);
}

/* Gradient Settings */
.gradient-stop {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-stop:last-child {
    border-bottom: none;
}

.gradient-settings-layout {
    display: flex;
    gap: 20px;
}

.gradient-controls {
    flex: 1;
}

.gradient-preview-container {
    width: 300px;
    flex-shrink: 0;
}

.intro-gradient-preview {
    width: 100%;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.gradient-direction-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.gradient-direction-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.gradient-direction-preview {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .gradient-settings-layout {
        flex-direction: column;
    }

    .gradient-preview-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .schedule-dialog-content {
        width: 95vw;
        height: 95vh;
    }

    .schedule-dialog-header {
        padding: 15px 20px;
    }

    .schedule-close {
        right: 15px;
    }

    .schedule-title-dialog {
        font-size: 15px;
    }

    .schedule-tabs {
        padding: 0 20px;
        overflow-x: auto;
    }

    .schedule-dialog-body {
        padding: 20px;
    }

    .schedule-dialog-footer {
        padding: 15px 20px;
    }

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

    .btn-schedule-dialog,
    .btn-schedule-dialog-secondary {
        width: 100%;
    }

    .upcoming-event-item {
        grid-template-columns: 1fr;
    }

    .upcoming-event-item-image {
        width: 100%;
        height: 200px;
    }

    .upcoming-event-item-actions {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .schedule-tabs {
        gap: 5px;
    }

    .schedule-tabs .tab-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .gradient-direction-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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