/* DeskRSVP - Mobile-First Styles */

:root {
    --primary: #4A90E2;
    --success: #7ED321;
    --warning: #F5A623;
    --danger: #D0021B;
    --bg-dark: #1A1A2E;
    --bg-light: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #ECF0F1;
    --border: #DDDDDD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 70px;
    /* Space for bottom nav */
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
.header {
    background: var(--primary);
    color: var(--text-light);
    padding: 16px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.75rem;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary);
    color: var(--text-light);
}

.nav-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    min-height: 44px;
    min-width: 44px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 4px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #3A70C2;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Weekly Calendar Grid */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.week-selector {
    display: flex;
    gap: 12px;
    align-items: center;
}

.week-selector button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.calendar-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.week-view {
    display: flex;
    gap: 4px;
    min-width: 100%;
}

.day-column {
    flex: 1;
    min-width: 100px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.day-header {
    background: var(--primary);
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.time-slot {
    padding: 8px 4px;
    border: 1px solid #DDDDDD;
    font-size: 0.75rem;
    text-align: center;
    min-height: 40px;
    cursor: pointer;
    transition: background 0.2s;
}

.time-slot:hover {
    background: #F8F9FA;
}

.time-slot.available {
    background: rgba(126, 211, 33, 0.1);
}

.time-slot.limited {
    background: rgba(245, 166, 35, 0.1);
}

.time-slot.full {
    background: rgba(208, 2, 27, 0.1);
    cursor: not-allowed;
}

.time-slot .capacity {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.time-slot .time {
    display: block;
    color: #999;
    font-size: 0.7rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

/* Booking List */
.booking-item {
    background: #F8F9FA;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-details {
    flex: 1;
}

.booking-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.booking-time {
    font-size: 0.875rem;
    color: #666;
}

.booking-actions {
    display: flex;
    gap: 8px;
}

.booking-actions button {
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: var(--danger);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(126, 211, 33, 0.1);
    color: #5A9216;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(208, 2, 27, 0.1);
    color: #A00116;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(245, 166, 35, 0.1);
    color: #B37619;
    border-left: 4px solid var(--warning);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .container {
        max-width: 900px;
    }

    .day-column {
        min-width: 120px;
    }
}