/* ========================================
   FORMS - Form Elements, Inputs, Controls
   ======================================== */

/* Login Box with Neon Border */
.login-box {
    max-width: 450px;
    margin: 50px auto;
    padding: 50px;
    background: rgb(35, 35, 55);
    backdrop-filter: none;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Form Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="month"],
.form-group select.calendar-dropdown {
    width: 100%;
    padding: 14px 18px;
    background: rgb(35, 35, 55);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.calendar-dropdown {
    cursor: pointer;
}

.calendar-dropdown option {
    background: #1a1a2e;
    color: var(--text-primary);
    padding: 10px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgb(40, 40, 60);
    box-shadow: 0 0 0px rgba(159, 122, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Error Messages */
.error-message {
    color: #fc8181;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    background: rgba(252, 129, 129, 0.1);
    border-radius: 8px;
}

/* Inline Form Groups */
.form-group-inline {
    flex: 1;
    min-width: 200px;
}

/* Participant Inputs */
.participant-input {
    width: 100%;
    padding: 14px 18px;
    background: rgb(35, 35, 55);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.participant-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.participant-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgb(40, 40, 60);
    box-shadow: 0 0 0px rgba(102, 126, 234, 0.4);
}

/* Participant Input (Full Width Card) */
.participants-card-full-width .participant-input {
    background: rgb(50, 50, 70);
    border: 2px solid rgba(102, 126, 234, 0.5);
    box-shadow: inset 0 0 0 3px rgba(102, 126, 234, 0.15);
    height: var(--control-height);
}

.participants-card-full-width .participant-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

/* Participant Add Form (Admin Page) */
.participant-add-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.participant-add-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

/* Instructions */
.instructions {
    background: rgba(240, 147, 251, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-pink);
}

.instructions ul {
    margin-left: 20px;
}

.instructions li {
    margin: 10px 0;
    color: var(--text-secondary);
}

/* Change Date Range Container */
.change-date-range-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.change-date-range-container .btn {
    min-width: 300px;
    height: var(--control-height);
    padding: 0 40px;
}

/* Control Sections */
.control-section {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.control-section:hover {
    background: rgb(35, 35, 55);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.control-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 700;
}

.control-section-clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.control-section-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.control-section-clickable:hover::before {
    left: 100%;
}

.control-section-clickable:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 8px rgba(102, 126, 234, 0.4);
}

.control-section-hint {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-top: 10px;
    font-style: italic;
}

.control-section-compact {
    padding: 20px 25px;
}

.control-section-compact h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Email Modal Enhanced Styles */
#emailModal .modal-content {
    max-width: 500px;
}

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

#emailModal .form-group label {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
}

#emailModal .form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgb(35, 35, 55);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

#emailModal .form-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgb(40, 40, 60);
    box-shadow: 0 0 0px rgba(159, 122, 234, 0.3);
}

#emailModal .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#emailModal .error-message {
    min-height: 24px;
    margin-bottom: 15px;
}

#emailModal .btn {
    width: 100%;
}

/* Textarea Styling for Modals */
textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgb(35, 35, 55);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgb(40, 40, 60);
    box-shadow: 0 0 0px rgba(159, 122, 234, 0.3);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
