/* General Body & Font Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding-top: 80px; /* Add padding to body to offset fixed navbar */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* --- NEW NAVBAR STYLES --- */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.main-logo {
    height: 50px;
    width: auto;
}
.main-nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: #3498db;
}

/* --- LANDING PAGE STYLES --- */
.landing-container {
    width: 100%;
}
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 48px;
    margin: 0 0 10px 0;
}
.hero p {
    font-size: 20px;
}
.content-section {
    padding: 50px 10%;
    max-width: 1200px;
    margin: 0 auto;
}
.content-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.event-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-image-container {
    position: relative;
}
.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
}
.status-badge.open {
    background-color: #2ecc71; /* Green */
}
.status-badge.soon {
    background-color: #f39c12; /* Orange */
}
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin: 0 0 10px 0;
}
.event-date {
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 15px;
}
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-primary {
    background-color: #3498db;
    color: #fff;
}
.btn-primary:hover {
    background-color: #2980b9;
}
.btn.disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-secondary {
    background-color: #ecf0f1;
    color: #333;
}
.btn-secondary:hover {
    background-color: #bdc3c7;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-grid img {
    width: 100%;
    border-radius: 12px;
}
.landing-footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #fff;
}

/* Wrapper for detail and register pages */
.page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 800px;
    margin: 20px;
}
.event-info-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.event-info-container h3 {
    font-size: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
}
.event-info-container p {
    line-height: 1.6;
    color: #555;
}
.event-info-container ul {
    list-style-type: '✓';
    padding-left: 20px;
}
.event-info-container ul li {
    padding-left: 10px;
    margin-bottom: 10px;
    color: #333;
}
.event-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.event-details p {
    margin: 5px 0;
}
.register-action {
    text-align: center;
    margin-top: 30px;
}
.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* --- NEW SUCCESS PAGE STYLES --- */
.success-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}
.registration-details {
    margin-top: 30px;
    text-align: left;
    display: inline-block;
    max-width: 500px;
    width: 100%;
}
.registration-details h3 {
    text-align: center;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}
.registration-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.registration-details ul li {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}
.registration-details ul li:last-child {
    border-bottom: none;
}
.registration-details ul li strong {
    color: #34495e;
    margin-right: 10px;
}
.confirmation-note {
    text-align: center;
    margin-top: 25px;
    color: #7f8c8d;
    font-size: 14px;
}
.back-home-action {
    text-align: center;
    margin-top: 30px;
}

/* --- Registration Form Styles --- */
.form-container.solo-form {
    width: 100%;
    max-width: 650px;
    box-sizing: border-box;
    margin: 20px auto;
}
.form-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.form-header {
    text-align: center;
    margin-bottom: 30px;
}
.form-header.centered-logo {
    margin-bottom: 30px;
}
.full-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}
.form-header h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
}
.form-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.submit-btn:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: translateY(-2px);
}
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Admin Panel Styles --- */
.admin-container {
    width: 100%;
    max-width: 1200px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 20px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.admin-header h1 {
    margin: 0;
    color: #2c3e50;
}
.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}
.logout-btn:hover {
    background-color: #c0392b;
}
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.card {
    background-color: #ecf0f1;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}
.card h2 {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 18px;
}
.card p {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #34495e;
}
.data-table-section {
    margin-bottom: 40px;
}
.data-table-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}
.table-wrapper {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
thead th {
    background-color: #f2f2f2;
    font-weight: 500;
    color: #333;
}
tbody tr:hover {
    background-color: #f9f9f9;
}
.filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-form input, .filter-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}
.filter-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-weight: 500;
}
.filter-form button:hover {
    background-color: #2980b9;
}
.clear-filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #95a5a6;
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    text-align: center;
}
.clear-filter-btn:hover {
    background-color: #7f8c8d;
}
.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px;
}
.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
}


