body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    color: #333;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #2c3e50;
}

.subtitle {
    color: #7f8c8d;
    margin-top: 10px;
    font-size: 1.1rem;
}

#lastUpdated {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 5px;
    font-style: italic;
}

/* Tab styles */
.tabs {
    display: flex;
    background: white;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    background: #e9ecef;
}

.tab.active {
    background: white;
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.tab-content {
    background: white;
    border-radius: 0 0 15px 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.search-section {
    text-align: center;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    font-weight: 500;
}

.message.info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.message.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.message.error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

.results-container {
    margin-top: 20px;
    display: none;
}

.results-container.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.summary-table, .results-table, .meetup-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.summary-table th, .results-table th, .meetup-table th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.summary-table td, .results-table td, .meetup-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.summary-table th:nth-child(2),
.summary-table td:nth-child(2) {
    text-align: center;
}

/* Adjust column widths to accommodate new Deadline column */
/* CENTER COLOR COLUMNS */
.results-table th:nth-child(n+4):not(:last-child), 
.results-table td:nth-child(n+4):not(:last-child) {
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* STATUS BOX BASE STYLE */
.status-ordered, .status-atkadd, .status-otwtosg, .status-ready, 
.status-collected, .status-unpaid, .status-paid, .status-atcadd, 
.status-atjadd, .payment-status {
    width: 28px;
    height: 28px;
    display: inline-block;
    border-radius: 6px;
    text-indent: -9999px; /* HIDES THE TEXT */
    overflow: hidden;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}

/* UPDATED STATUS COLORS */
.status-ordered { background-color: #fce5cd; border-color: #f6b26b; }
.status-unpaid { background-color: #ea9999; border-color: #e06666; }
.status-atkadd { background-color: #d9ead3; border-color: #93c47d; }
.status-paid { background-color: #b7e1cd; border-color: #93c47d; }
.status-otwtosg { background-color: #ffe599; border-color: #f1c232; }
.status-atcadd { background-color: #c9daf8; border-color: #6d9eeb; }
.status-ready { background-color: #f4cccc; border-color: #ea9999; }
.status-atjadd { background-color: #b4a7d6; border-color: #8e7cc3; }
.status-collected { background-color: #d2e9ff; border-color: #a4c2f4; }

/* PAYMENT SPECIFIC COLORS */
.payment-paid { background-color: #b7e1cd; border-color: #93c47d; }
.payment-pending { background-color: #ffe599; border-color: #f1c232; }
.payment-unpaid { background-color: #ea9999; border-color: #e06666; }
.payment-collected { background-color: #d2e9ff; border-color: #a4c2f4; }
.payment-missing { background-color: #f3f3f3; border-color: #ddd; }
.payment-empty { background-color: #ffffff; border-color: #dddddd; color: #666666; }

/* Meetup specific styles */
.instructions-box {
    background: #f8f9fa;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.instructions-box h3 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 1px solid #3498db;
    padding-bottom: 10px;
}

.instructions-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.instructions-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.instructions-box p {
    margin: 10px 0;
    line-height: 1.5;
}

.meetup-section {
    margin-top: 20px;
}

.meetup-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.meetup-table th, .meetup-table td {
    text-align: center;
}

.meetup-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.legend { 
    background: white; 
    padding: 25px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    margin-top: 30px;
}

.legend-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 15px; 
    margin-top: 15px;
}

.legend-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 10px; 
    background: #f8f9fa; 
    border-radius: 8px; 
}

.legend-color { 
    width: 24px; 
    height: 24px; 
    border-radius: 4px; 
    border: 2px solid rgba(0,0,0,0.1); 
}

.loading { 
    display: none; 
    text-align: center; 
    padding: 20px; 
}

.loading.active { 
    display: block; 
}

.spinner { 
    border: 3px solid #f3f3f3; 
    border-top: 3px solid #3498db; 
    border-radius: 50%; 
    width: 30px; 
    height: 30px; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 15px; 
}

/* Book Slot Button Styles */
.book-slot-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6d9eeb, #6d9eeb);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.book-slot-btn:hover {
    background: linear-gradient(135deg, #a4c2f4, #a4c2f4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.book-slot-btn:active {
    transform: translateY(0);
}

/* Meetup table adjustments for the action column */
.meetup-table th:nth-child(4),
.meetup-table td:nth-child(4) {
    text-align: center;
    width: 120px;
}

.meetup-table td:nth-child(4) {
    padding: 10px;
}

/* Booking page specific styles */
.listing-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    min-height: 44px;
}

.listing-checkbox {
    margin-right: 8px !important; /* Small gap */
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.listing-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
    flex-grow: 1;
    cursor: pointer;
    margin-left: 2px; /* Small left margin */
}

/* Remove any automatic hashtag addition */
.listing-name::before {
    content: none !important;
}

/* Make the checkbox label area clickable */
.listing-item label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

/* Select all button */
.select-all {
    font-size: 0.85rem;
    color: #3498db;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.select-all:hover {
    color: #2980b9;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}