/* ===========================
   GLOBAL PAGE STYLES
   =========================== */

main.content {
    width: 90%;
    max-width: 1200px;
    margin: 2em auto;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
    background-color: #fff;
}

h1 {
    color: #cc5500;
    font-size: 2em;
    margin-bottom: 0.5em;
    text-align: center;
}

p {
    line-height: 1.6;
    text-align: center;
    /*color: #f0f0f0;*/
    color: #333;
    margin-bottom: 1.5em;
}

/* ===========================
   SEARCH FORM
   =========================== */

.search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em;
    margin: 1.5em auto;
    width: 80%;
    background: #fdf6f0;
    padding: 1em;
    border: 1px solid #e6d5c3;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.7em 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    min-width: 220px;
}

.search-buttons {
    display: flex;
    gap: 0.5em;
    align-items: center;
}

/* ===========================
   BUTTONS
   =========================== */

button,
.btn,
.clear-btn,
.btn-small,
.upload-btn {
    background: #cc5500;
    color: white;
    border: none;
    padding: 0.1em 0.6em;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

button:hover,
.btn:hover,
.clear-btn:hover,
.btn-small:hover,
.upload-btn:hover {
    background: #a64200;
}

.clear-btn {
    background: #666;
}

.clear-btn:hover {
    background: #444;
}

.upload-btn {
    background: #CC5500;
    /*background: #2a9d8f;*/
}

.upload-btn:hover {
    background: #1f7a71;
}

.upload-btn.disabled {
    opacity: 0.8;
    pointer-events: none;
}

/* ===========================
   EVENTS CONTROLS
   =========================== */

.events-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    margin: 2em auto;
    width: 90%;
}

.left-controls,
.right-controls {
    display: flex;
    align-items: center;
    gap: 1em;
}

.login-note {
    color: #444;
    font-style: italic;
    font-size: 0.95em;
}

/* ===========================
   EVENTS TABLE
   =========================== */

.events-table-section {
    width: 90%;
    margin: 0 auto;
    overflow-x: auto;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.events-table th,
.events-table td {
    padding: 0.8em;
    line-height: 1.0;
    font-size: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.events-table th {
    background: #cc5500;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.events-table tr:nth-child(even) {
    background-color: #fdf6f0;
}

.events-table a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.events-table a:hover {
    text-decoration: underline;
}

/* ===========================
   PAGINATION
   =========================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    margin: 2em 0;
}

.pagination a {
    padding: 0.5em 0.9em;
    background: #eee;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s;
}

.pagination a.active {
    background: #cc5500;
    color: #fff;
    font-weight: bold;
}

.pagination a:hover {
    background: #a64200;
    color: #fff;
}

/* ===========================
   EMPTY MESSAGE
   =========================== */

.no-events {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 2em;
}



/* Events Controls */
.events-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 1em;
}

/* Upload Button */
.upload-btn {
    display: inline-block;
    background-color: #cc5500;
    color: #fff;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.25s ease;
}

.upload-btn:hover {
    background-color: #a64200;
}

/* Disabled look (for logged-out users) */
.upload-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Login note styling */
.login-note {
    font-size: 0.95em;
    color: #555;
}

.login-note .login-link {
    color: #cc5500;
    text-decoration: underline;
}

.login-note .login-link:hover {
    color: #a64200;
}

/* Toggle buttons */
.toggle-view .btn-small {
    background-color: #444;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.25s ease;
}

.toggle-view .btn-small:hover {
    background-color: #666;
}



/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .search-form {
        width: 95%;
        flex-direction: column;
    }

    .events-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 95%;
    }

    .search-buttons {
        justify-content: flex-start;
        width: 100%;
    }

    .events-table th,
    .events-table td {
        padding: 0.6em;
        font-size: 0.9em;
    }
}









