/* General Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, #e0f2ff, #ffffff);
    color: #1f2937;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0.5em 0;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    position: relative;
    background-color: #2563eb;
    color: white;
    padding: 1.5em 1em;
    text-align: center;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateGlobe 60s linear infinite;
}

@keyframes rotateGlobe {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header h1 {
    position: relative;
    font-size: 2em;
    z-index: 1;
}

/* Buttons */
button {
    cursor: pointer;
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 8px;
    margin: 0.3em;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

button:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
}

/* Main layout */
main {
    max-width: 1300px;
    margin: 2em auto;
    padding: 0 1em;
}

/* Sections */
section {
    margin-bottom: 3em;
    padding: 2em;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Forms */
input, select, textarea {
    padding: 0.6em;
    margin: 0.4em 0;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 10px rgba(59,130,246,0.3);
}

label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
}

/* Event Cards */
.event-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-bottom: 2em;
}

.event-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    flex: 1 1 calc(33.333% - 1.5em);
    padding: 1em;
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.event-card:hover img {
    transform: scale(1.05);
}

.event-card h3 {
    margin-top: 0.5em;
    font-size: 1.3em;
    color: #1e3a8a;
}

.event-card p {
    font-size: 0.95em;
    line-height: 1.4;
}

.event-card .tag {
    position: absolute;
    top: 1em;
    right: 1em;
    background-color: #3b82f6;
    color: white;
    padding: 0.3em 0.6em;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Dashboard */
#eventsContainer {
    margin-top: 1em;
}

#logoutBtn {
    float: right;
    margin-top: -3em;
    margin-right: 1em;
}

/* Admin Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

th, td {
    padding: 0.75em;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: rgba(59,130,246,0.1);
}

/* Survey Form */
#surveyForm {
    background-color: white;
    padding: 2em;
    border-radius: 12px;
    max-width: 650px;
    margin: 2em auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Dropdowns */
select {
    margin-top: 0.5em;
}

/* Animations */
@keyframes floatUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

button, .event-card, section {
    animation: floatUp 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1000px) {
    .event-card {
        flex: 1 1 calc(50% - 1em);
    }
}

@media (max-width: 600px) {
    .event-card {
        flex: 1 1 100%;
    }

    #logoutBtn {
        float: none;
        display: block;
        margin-top: 1em;
    }
}
