* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 4rem;
}

/* Navigation */
.tabs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #1a1a2e;
    padding: 0;
    z-index: 100;
    overflow-x: auto;
}

.tabs a {
    color: #aaa;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.tabs a:hover {
    color: #fff;
}

.tabs a.active {
    color: #fff;
    border-bottom-color: #e94560;
}

/* Typography */
h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    transition: all 0.2s;
}

/* Lists */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.list-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-yes {
    background: #d4edda;
    color: #155724;
}

.badge-maybe {
    background: #fff3cd;
    color: #856404;
}

.badge-no {
    background: #f8d7da;
    color: #721c24;
}

.badge-pending {
    background: #e2e3e5;
    color: #383d41;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background: #e94560;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}

/* Attendance */
.attendance-list {
    margin-top: 0.5rem;
}

.attendance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.attendance-row:last-child {
    border-bottom: none;
}

/* Chat */
.chat-section {
    margin-top: 1rem;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.chat-bubble {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-bubble.self {
    background: #e94560;
    color: #fff;
    margin-left: auto;
}

.chat-bubble.other {
    background: #e9ecef;
    color: #333;
}

.chat-sender {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.chat-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.15rem;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
}

.chat-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Map */
.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* Date navigation */
.date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.date-nav a {
    color: #e94560;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Booking URL */
.booking-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #e94560;
    text-decoration: none;
    font-weight: 600;
}

.booking-link:hover {
    text-decoration: underline;
}

/* Checkbox list */
.checkbox-list {
    list-style: none;
}

.checkbox-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 0.75rem;
        padding-top: 3.5rem;
    }

    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}
