#event-preview {
    position: fixed;
    resize: none;
    top: 30px;
    left: 0;
    width: fit-content;
    z-index: 1000;
}

#event-preview h1,
#events h1 {
    padding-left: 10px;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: -5px;
}

.upcoming-events ul {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 0px;
}

.upcoming-events {
    margin-left: 40px;
}

.upcoming-events details ul li h4 {
    margin-left: 20px !important;
}

#events {
    width: 300px;
    resize: none;
}

#events summary {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0;
}

#events details {
    margin-top: 0px;
}

#events h3, h4, p {
    margin-left: 20px;
}

#events h1 {
    margin-right: 20px;
}

#events p {
    padding-right: 20px;
    margin-bottom: 25px;
}

#event-preview h2,
#event-preview h4 {
    margin-top: 0px;
    margin-bottom: 0px;
}

#events h4 {
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 40px;
}

#events h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}



.event-list {
    margin-left: 10px;
}

#delete-all-events-btn {
    display: inline !important;
    margin-left: 27%;
    margin-bottom: 10px;
    font-size: 1.2rem !important;
}

#event-preview p {
    margin-bottom: 9px;
    margin-right: 15px;
    max-width: 250px;
}

.buttons {
    display: flex;
    gap: 2px;
    margin-bottom: 25px;
}

#create-event {
    justify-self: center;
    align-self: center;
    margin-left: 7%;
    display: inline-flex;
}

.event-list button,
#event-preview button,
#delete-all-events-btn {
    width: auto;
    height: fit-content;
    padding: 8px 5px;
    margin-top: 0px;
    margin-right: 0px;
    background: rgba(var(--button-color, 0, 0, 0), 0.2);
    border: none;
    border-radius: 10px;
    color: rgb(var(--text-color, 255, 255, 255));
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: 'Bahnschrift', sans-serif; 
    font-size: 17px;
    display: none; /* adjusted in calendar.js */
}

#event-preview #create-event-btn {
    margin-left: calc(50% - (156.35px / 2));
    margin-bottom: 15px;
    font-size: 20px;
}

.event-list .row1,
.event-list .row2 {
    justify-content: left;
    align-items: center;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: 10px;
    height: fit-content;
}

.event-list .row2 {
    margin-top: 10px !important;
    margin-right: 10px;
    margin-bottom: 20px !important;
}

#edit-event {
    width: fit-content !important;
    padding: 5px !important;
}

.event-list button:hover,
#event-preview button:hover,
#delete-all-events-btn:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.event-list button:active,
#event-preview button:active,
#delete-all-events-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.event-list li {
    /* justify-content: space-between; */
    margin-left: -15px;
    list-style-type: none;
    font-size: large;
}


/* Event modal */

  
#event-modal {
    width: 360px;
    height: 440px;
    display: none;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-content: center;
    align-self: center;
    resize: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    z-index: 1000;
}

.modal-content {
    overflow-y: auto;
    max-height: 365px;
}

/* Time fields visibility control */
#time-fields {
display: none;
}

#all-day-checkbox:not(:checked) ~ #time-fields {
display: block;
}

/* Style for input containers */
#user-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
    align-content: center;
    font-size: 1rem;
    gap: 8px;
}

/* Labels */
#user-input label {
    /* display: flex; */
    font-weight: bold;
    margin-bottom: 3px;
    margin-top: 3px;
    font-size: 1rem;
    height: 18px;
}

.checkbox-pair {
    display: flex;
    align-items: center;
}

/* Text inputs & date/time/select fields */
#user-input input[type="text"],
#user-input input[type="date"],
#user-input input[type="time"],
#user-input select,
#user-input textarea {
    width: 70%;
    padding: 10px;
    background: rgba(var(--widget-color, rgb(0, 0, 0)), 0.15); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgb(var(--text-color, 255, 255, 255));
    font-size: 1rem;
    font-family: 'Bahnschrift', sans-serif;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Focus and hover effects */
#user-input input[type="text"]:focus,
#user-input input[type="date"]:focus,
#user-input input[type="time"]:focus,
#user-input select:focus,
#user-input textarea:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Checkbox Styling */
#user-input input[type="checkbox"] {
    display: flex;
    width: 18px;
    height: 18px;
}

/* Checkbox + Label Alignment */
#user-input label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Select dropdown */
#user-input select {
    cursor: pointer;
    appearance: none; /* Hide default dropdown arrow */
    background: rgba(var(--widget-color, rgb(0, 0, 0)), 0.15); /* Semi-transparent background */
    padding-right: 30px;
}

#user-input select option {
    color: black;
}

/* Textarea */
#user-input textarea {
    width: 70%;
    height: 80px;
    resize: none;
}

input::placeholder {
    color: rgb(var(--text-color, white));
    opacity: 0.8;
}

textarea::placeholder {
    color: rgb(var(--text-color, white));
    opacity: 0.8;
}


/* Spacing for checkboxes */
#user-input input[type="checkbox"] + label {
    margin-left: 5px;
}


.submit-button {
    width: auto;
    padding: 12px 10px 10px;
    margin-top: 0px;
    background: rgba(var(--widget-color, rgb(0, 0, 0)), 0.2); /* Semi-transparent background */
    border: none;
    border-radius: 10px;
    color: rgb(var(--text-color, 255, 255, 255));
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: 'Bahnschrift', sans-serif; 
    font-size: x-large;
}

.submit-button:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}