/* create.css */

/* Container section styling */
section {
    max-width: var(--screen-lg);
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Header */
section h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--secondary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form layout */
form.new-event-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form group styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input and textarea full width */
input[type="text"],
textarea {
    width: 100%;
}

/* Textarea height */
textarea {
    min-height: 100px;
}

/* Error message spacing */
.error-message {
    margin-top: 0.25rem;
    display: block;
}

/* Submit button spacing */
button[type="submit"] {
    align-self: flex-end;
    margin-top: 1rem;
}

/* Center the calendar container */
#currentDates {
    display: flex;
    justify-content: center;
}

/* Center and style the Add Date button */
#add-date {
    display: block;
    margin: 0.5rem auto 1rem auto;
}

/* Style for each selected date row */
.date-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    background-color: var(--gray-100);
    margin-bottom: 0.5rem;
}

/* Display block for human-readable date */
.date-display {
    flex: 1;
    font-size: 1rem;
    color: var(--secondary-dark);
    word-break: break-word;
    line-height: 1.4;
}

/* Hidden input should not take layout space */
.date-wrapper input.date-item {
    display: none;
}

/* Remove button styling refinement */
.remove-date {
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error-dark);
}

/* Password wrapper styles */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Style the password input to make room for the icon */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 2.5rem;
    /* space for the eye icon */
}

/* Eye icon styling inside the input */
.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.25rem;
    user-select: none;
}

/* Group container for password fields */
.password-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Side by side on medium screens and up */
@media (min-width: 768px) {
    .password-group {
        flex-direction: row;
    }

    .password-group .password-wrapper {
        flex: 1;
    }
}

/* Bells and Whistles dropdown */
.bells-details {
    margin-top: 1.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background-color: var(--gray-100);
    overflow: hidden;
}

/* Summary button style */
.bells-summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    color: var(--secondary-dark);
    background-color: var(--gray-200);
    transition: background-color 0.2s ease;
}

.bells-summary:hover {
    background-color: var(--gray-300);
}

/* Inner content area */
.bells-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Optional: subtle open indicator */
.bells-details[open] .bells-summary {
    background-color: var(--gray-300);
}