body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;

}

.calendar-container {
    display: flex;
    gap: 20px;
}

.month-column {
    width: 48%;
}

.event-card {
    background-color: #4e8abe;
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
}

.event-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.organizer-icon-container {
    flex: 0 0 auto;
}

.date-container {
    flex: 0 0 auto;
    text-align: center;
    font-size: larger;
}

.event-day {
    font-size: 2em;
    font-weight: bold;
}

.event-month {
    font-size: 1em;
}

.event-title-container {
    flex: 1;
    margin-left: 20px;
}

.time-location-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.other-events-button, .learn-more-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.other-events-button:hover, .learn-more-button:hover {
    background-color: #0056b3;
}

.event-section {
    background-color: white;
    color: #333;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.calendar-icon, .googlecal-icon, .directions-icon {
    margin-right: 10px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Add styles for the admin textarea */
textarea[name="details"] {
    white-space: pre-wrap;
    font-family: Arial, sans-serif;
    width: 100%;
    min-height: 150px;
    padding: 10px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    overflow-y: auto;
}

textarea[name="details"]:focus {
    border-color: #4e8abe;
    outline: none;
    box-shadow: 0 0 5px rgba(78, 138, 190, 0.3);
}

/* Add to existing styles */
.register-button {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
}

.register-button:hover {
    background-color: #218838;
}

#registrationModal .modal-content {
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.event-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.event-info h3 {
    margin-top: 0;
    color: #4e8abe;
}

/* Success Modal Styles */
.success-modal .modal-content {
    text-align: center;
    padding: 20px;
}

.success-modal h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.qr-code {
    margin: 20px 0;
}

.qr-code img {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.calendar-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4e8abe;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
}

.calendar-link:hover {
    background-color: #3d6d94;
}

/* Base colors using a more harmonious palette */
:root {
    --primary: #4a7ca5;      /* Muted blue - main brand color */
    --primary-hover: #3d6d94;
    --success: #2d8a3e;      /* Muted green - less harsh than current */
    --danger: #b84252;       /* Muted red - less aggressive */
    --warning: #e6a23c;      /* Warm amber for pending status */
    --text: #2c3e50;         /* Dark blue-grey for text */
    --background: #f8f9fa;   /* Light grey background */
}

/* Clean, simple button styles */
.action-buttons {
    display: flex;
    gap: 8px;
    min-width: 240px;  /* Increased to fit three buttons */
}

.btn {
    width: 70px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    color: white;
    text-decoration: none;
}

/* Button colors */
.btn-edit {
    background-color: #4a7ca5;
}

.btn-create {
    background-color: #2d8a3e;
}

.btn-delete {
    background-color: #b84252;
}

/* Action column width */
.registrations-table td:last-child {
    white-space: nowrap;
    padding: 8px 16px;
}

/* Table improvements */
.registrations-table {
    border-spacing: 0;
    width: 100%;
}

.registrations-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 12px 16px;
    text-align: left;
}

.registrations-table td {
    padding: 12px 16px;
    vertical-align: middle;
    color: var(--text);
    border-bottom: 1px solid #e5e7eb;
}

/* Status indicators */
.status-pending {
    color: var(--warning);
    font-weight: 500;
}

.status-paid {
    color: var(--success);
    font-weight: 500;
}

/* Create New Class button */
.btn-create {
    background-color: #28a745;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.btn-create:hover {
    background-color: #218838;
}

/* Table Styles */
.list-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.registrations-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.registrations-table th, 
.registrations-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.registrations-table th {
    background-color: #4e8abe;
    color: white;
}

.registrations-table tr:hover {
    background-color: #f5f5f5;
}

/* Navigation styles */
.nav-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

.main-nav .nav-container {
    justify-content: flex-start;
    gap: 2rem;
}

.nav-link {
    color: #495057;
    text-decoration: none;
    padding: 0.5rem;
}

.nav-link.active {
    color: #4e8abe;
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-card h2 {
    color: #4e8abe;
    margin-top: 0;
    margin-bottom: 15px;
}

.dashboard-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-card li {
    margin-bottom: 10px;
}

.dashboard-card a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dashboard-card a:hover {
    background-color: #f8f9fa;
    color: #4e8abe;
}

/* Add these report-specific styles */
.summary-stats {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.summary-stats h2 {
    color: #4e8abe;
    margin-top: 0;
    margin-bottom: 15px;
}

.summary-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-stats li {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #4e8abe;
}

.report-section {
    margin-top: 30px;
}

.report-section h2 {
    color: #212529;
    margin-bottom: 20px;
}

/* Style the table to match other tables in TAP */
.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.report-table th, 
.report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.report-table th {
    background-color: #4e8abe;
    color: white;
}

.report-table tr:hover {
    background-color: #f8f9fa;
}

/* Add color coding for revenue cells */
.revenue-positive {
    color: #28a745;
}

.revenue-zero {
    color: #dc3545;
}

/* Report Styles */
.report-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.report-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-item label {
    display: block;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-item value {
    font-size: 24px;
    font-weight: 500;
    color: #4e8abe;
}

.fill-bar {
    background: #4e8abe;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 40px;
    text-align: right;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge.success {
    background: #28a745;
    color: white;
}

.badge.warning {
    background: #ffc107;
    color: #000;
}

.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.month-picker {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    min-width: 180px;
    cursor: pointer;
}

.month-picker:focus {
    outline: none;
    border-color: #4682b4;
    box-shadow: 0 0 0 2px rgba(70, 130, 180, 0.2);
}

.nav-btn {
    background: #4682b4;
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.nav-btn:hover {
    background: #3a6d96;
}

.external-registration-box {
    background: #fff3cd;
    border: 2px solid #ffeeba;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

.external-registration-box h3 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.external-register-button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.external-register-button:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
}

.registration-url-box {
    background: #fff3cd;
    border: 2px solid #ffeeba;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
}

.registration-url-box h3 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.registration-link {
    display: inline-block;
    color: #0056b3;
    font-weight: bold;
    text-decoration: underline;
    word-break: break-all;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    font-size: 1.1em;
}

.registration-link:hover {
    color: #003166;
}
