/* =======================================================
   GLOBAL BASE STYLES
======================================================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0 10px;
    color: #333;
}

h1, h2 {
    text-align: center;
    margin: 20px 0 10px;
}

.container {
    max-width: 500px;
    margin: auto;
    padding-top: 60px;
}

/* =======================================================
   FORM FIELDS
======================================================= */
form {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input, select, textarea, button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    background: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

/* =======================================================
   EVENT CARDS
======================================================= */
ul { list-style: none; padding: 0; }

li {
    background: #fff;
    margin: 5px 0;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

li span { margin-bottom: 5px; }

/* =======================================================
   HAMBURGER MENU
======================================================= */
.hamburger-wrapper {
    position: fixed;
    top: env(safe-area-inset-top);
    left: 10px;
    z-index: 1000;
}

.hamburger-btn {
    font-size: 28px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
}

.hamburger-menu {
    display: none;
    position: fixed;
    top: 50px;
    left: 15px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 170px;
}

.hamburger-menu a {
    display: block;
    padding: 12px;
    color: #333;
}

/* =======================================================
   MODAL
======================================================= */
#editModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content .usermodal-content {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
}

/* =======================================================
   ADMIN EVENT BUTTONS (Delete + Edit)
======================================================= */
.manage-events .event-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.manage-events .event-buttons form,
.manage-events .event-buttons button {
    flex: 0 0 48%;
    margin: 0;
    padding: 0;
}

.delete-btn {
    width: 100%;
    background: #d9534f !important;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
}

.edit-btn {
    width: 100%;
    background: #0275d8 !important;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
}

/* =======================================================
   MOBILE OPTIMIZATION
======================================================= */
@media (max-width: 700px) {
    body { font-size: 20px; }
    .container { padding: 0 12px; }

    li { padding: 2px; }
    li span { font-size: 20px; }
    li strong { font-size: 22px; }

    .hamburger-btn { font-size: 34px; padding: 10px 14px; }
    .hamburger-menu { width: 220px; font-size: 20px; }

    .event-buttons form,
    .event-buttons button {
        flex: 0 0 48%;
    }
}


/* Login Modal */
#loginModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

/* Login Modal */
/* User Login Modal */
#userModal {
    display: none;             
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

