.flashes {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
    text-align: center;
    position: absolute;
    z-index: 10px;
    top: 150px;
}
.flashes li {
    display: inline-block;
    background-color: #f44336;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    animation: fadeOut 5s ease forwards;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

h1 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-optical-sizing: auto;
}
.add-event-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 80px;
    font-family: "Open Sans", sans-serif;
}

.add-event-blob {
    background: #2e44cc;
    color: white;
    padding: 45px;
    width: 850px;
    max-width: 95vw;
    border-radius: 15px; /* Simpler, clean rounded rectangle to fit inputs cleanly */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.underline-event {
    width: 200px;
    height: 5px;
    background: #8ac926;
    margin: 5px 0 30px;
}

.event-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.event-form input,
.event-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
    border: none;
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
}

.event-form textarea {
    resize: none;
    border: 1px solid black;
    overflow: auto;
    height: 120px;
}

.entry-box {
    border: 1px solid black;
    border-radius: 10px;  
    padding: 10px;         
    box-sizing: border-box;}

.event-label {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    margin-left: 5px;
    margin-bottom: -5px;
}

.button-submit {
    background-color: #aaeb54;
    color: black;
    border: 1px solid grey;
    padding: 12px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
}
.button-submit:hover {
    background-color: #8ac926;
}

.form-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-sizing: border-box;
    width: 100%;
}
.form-section * {
    box-sizing: border-box;
}
.form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}
.form-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}
.form-col label {
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}
.form-col input, .form-col select, .form-col textarea {
    width: 100%;
}
.event-label {
    margin-bottom: 5px;
    display: block;
}
/* Ensures text fields don't accidentally resize outside containers */
textarea {
    max-width: 100%;
}