.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-left-color: #3B82F6;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.modal-open {
    overflow: hidden;
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    margin: auto;
}

.date-section {
    margin-bottom: 3rem;
}

.date-header {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.location-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.location-column {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.location-header {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #d1d5db;
}

.shift-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.shift-card:hover {
    border-color: #3B82F6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.shift-card.registered {
    background: #dcfce7;
    border-color: #22c55e;
}

.shift-card.full {
    background: #fee2e2;
    border-color: #ef4444;
    cursor: not-allowed;
}

.shift-card.full:hover {
    transform: none;
}

.add-person-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: #3B82F6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    white-space: nowrap;
    z-index: 10;
}

.add-person-btn:hover {
    background: #2563EB;
    transform: scale(1.05);
}

.add-person-btn .plus-icon {
    font-size: 1rem;
    font-weight: bold;
}

.shift-card.full .add-person-btn {
    background: #9ca3af;
    cursor: not-allowed;
}

.shift-card.full .add-person-btn:hover {
    transform: none;
}

.required-field::after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
}

.saved-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.875rem;
}

.touch-target {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.volunteer-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3B82F6;
}

.volunteer-row {
    transition: background-color 0.2s;
}

.volunteer-row:hover {
    background-color: #f9fafb;
}

.help-request-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.help-request-card.pending {
    background: #fef3c7;
    border-color: #fbbf24;
}

.help-request-card.resolved {
    background: #d1fae5;
    border-color: #10b981;
}

@media (max-width: 768px) {
    .location-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
}

@media print {
    body > *:not(#printPreview) {
        display: none !important;
    }
    #printPreview {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 1rem;
        background: white;
    }
    .break-inside-avoid {
        page-break-inside: avoid;
    }
    .no-print {
        display: none !important;
    }
}