/* Create Event Modal Styles */

.create-event-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.create-event-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.create-event-modal-content {
    background: #1a1a1a;
    width: 100%;
    max-width: 660px;
    height: 90vh;
    max-height: 900px;
    border-radius: 16px;
    overflow-y: auto;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.create-event-modal-overlay.show .create-event-modal-content {
    transform: translateY(0);
}

/* Header */
.create-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.create-event-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
    flex: 1;
    text-align: center;
}

.create-event-btn-cancel {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.create-event-btn-create {
    background: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.create-event-btn-create:hover {
    color: #ff6b6b;
}

/* Body */
.create-event-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

/* Upload Section */
.upload-cover-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 16px;
    cursor: pointer;
    position: relative;
    min-height: 200px;
}

#upload-default-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: opacity 0.3s;
}

#coverPhotoPreview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

.upload-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    width: 64px;
    height: 64px;
    margin: auto;
}

.upload-icon-container svg {
    color: #fff;
    stroke-width: 1.5;
}

.upload-text {
    color: #ccc;
    font-size: 14px;
}

.btn-select-computer {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-select-computer:hover {
    border-color: #666;
    color: white;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    background: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 14px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: #666;
}

.form-input::placeholder {
    color: #666;
}

/* Custom Select */
.form-select-container {
    position: relative;
}

.form-select-container::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    /* Slightly lighter bg for dropdowns as shown */
    border: 1px solid #444;
    border-radius: 8px;
    padding: 14px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    width: 100%;
    cursor: pointer;
}

/* Form Row (for Date/Time) */
.form-row {
    display: flex;
    gap: 20px;
}

.form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Date/Time Inputs */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    color-scheme: dark;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-top: 4px;
}

.checkbox-visual {
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-container input {
    display: none;
}

.checkbox-container input:checked+.checkbox-visual {
    background: transparent;
    border-color: #fff;
}

.checkbox-container input:checked+.checkbox-visual::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: #ccc;
    font-size: 14px;
}

/* Description Toolbar */
.description-editor {
    margin-bottom: 24px;
    display: block;
}

/* Quill Editor Dark Theme Overrides */
.ql-toolbar.ql-snow {
    background: #2a2a2a;
    border: 1px solid #444 !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.ql-container.ql-snow {
    border: 1px solid #444 !important;
    border-top: none !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: transparent;
    color: white;
    font-family: inherit;
    font-size: 14px;
}

.ql-editor {
    min-height: 120px;
}

.ql-editor.ql-blank::before {
    color: #666 !important;
    font-style: normal;
}

/* Toolbar Icons */
.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:focus,
.ql-snow .ql-toolbar button:focus,
.ql-snow.ql-toolbar .ql-picker-label:hover,
.ql-snow .ql-toolbar .ql-picker-label:hover,
.ql-snow.ql-toolbar .ql-picker-item:hover,
.ql-snow .ql-toolbar .ql-picker-item:hover {
    color: #fff;
}

.ql-snow .ql-stroke {
    stroke: #ccc;
}

.ql-snow .ql-fill {
    fill: #ccc;
}

.ql-snow .ql-picker {
    color: #ccc;
}

.ql-snow .ql-picker-options {
    background-color: #2a2a2a;
    border-color: #444;
}

/* Hover states for icons */
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke {
    stroke: #fff;
}

.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill {
    fill: #fff;
}

/* Market your event section styling */
.market-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Scrollbar adjustment for modal body */
.create-event-body::-webkit-scrollbar {
    width: 6px;
}

.create-event-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.create-event-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.create-event-body::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Event Limit Warning Banner */
.event-limit-warning {
    background: #330000;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-left: -24px;
    margin-right: -24px;
}

.warning-icon {
    background: #ff0000;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.warning-text {
    color: #ffdce0;
    /* Light red/white text */
    font-size: 14px;
    line-height: 1.4;
}

.upgrade-link {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    margin-left: 4px;
}

.upgrade-link:hover {
    color: #fff;
    text-decoration: none;
}