/* ===========================
   GLOBAL LAYOUT
   =========================== */

main {
    width: 90%;
    max-width: 1200px;
    margin: 2em auto;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
    background-color: #fff;
}

.events-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 2em;
}

h2 {
    color: #cc5500;
    text-align: center;
    font-size: 2em;
    margin-bottom: 1em;
}

/* ===========================
   FORM STYLING
   =========================== */

.event-upload-form {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
    background: #fdf6f0;
    padding: 2em;
    border-radius: 10px;
    border: 1px solid #e6d5c3;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.event-upload-form label {
    font-weight: bold;
    color: #333;
}

.event-upload-form label span {
    color: #cc5500;
    margin-left: 2px;
}

.event-upload-form input[type="text"],
.event-upload-form input[type="date"],
.event-upload-form input[type="time"],
.event-upload-form input[type="file"] {
    padding: 0.7em 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.event-upload-form input:focus {
    border-color: #cc5500;
    outline: none;
}

/* ===========================
   BUTTONS
   =========================== */

.event-upload-form button[type="submit"] {
    background-color: #cc5500;
    color: white;
    border: none;
    padding: 0.8em;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.event-upload-form button[type="submit"]:hover {
    background-color: #a64200;
}

/* ===========================
   SUCCESS & ERROR MESSAGES
   =========================== */

.toast-success,
.success-msg {
    background: #2a9d8f;
    color: white;
    padding: 0.8em 1em;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    width: 80%;
    margin: 1em auto;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
}

.error-msg,
.client-error {
    background: #ffe0e0;
    color: #a30000;
    padding: 0.8em 1em;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    width: 80%;
    margin: 1em auto;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   NOTE TEXT
   =========================== */

.events-container p.note {
    text-align: center;
    font-style: italic;
    color: #555;
    margin-bottom: 1em;
}

/* ===========================
   FORM ACTION BUTTONS
   =========================== */

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1em;
    gap: 1em;
}

.submit-btn {
    background-color: #cc5500;
    color: #fff;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.25s ease;
}

.submit-btn:hover {
    background-color: #a64200;
}

.back-btn {
    display: inline-block;
    padding: 0.7em 1.5em;
    background-color: #cc5500;
    /*background-color: #444;*/
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.25s ease;
}

.back-btn:hover {
    background-color: #a64200;
    /*background-color: #666;*/
}

/* Excel download button */
.excel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background-color: #217346; /* Excel-green theme */
    color: #fff;
    padding: 0.4em 0.8em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.excel-btn:hover {
    background-color: #1a5a2a;
}

.excel-icon {
    font-size: 1.2em;
}


/* Stack buttons on smaller screens */
@media (max-width: 600px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .submit-btn,
    .back-btn {
        width: 100%;
        text-align: center;
    }
}


/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .event-upload-form {
        width: 95%;
        padding: 1.5em;
    }

    h2 {
        font-size: 1.6em;
    }
}
