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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 100%;
    max-width: 100vw;
    padding: 20px;
}

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

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.date-display, .location-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-display label, .location-selector label {
    font-weight: 600;
}

.date-display input, .location-selector select {
    padding: 8px 12px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.location-selector select {
    min-width: 300px;
}

.upload-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-upload {
    background-color: #007bff;
    color: white;
}

.btn-upload:hover {
    background-color: #0056b3;
}

.dashboard {
    display: grid;
    gap: 20px;
    width: 100%;
}

.dashboard.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dashboard.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dashboard.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.no-location-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 20px;
    color: #999;
}

.provider-column {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.provider-header {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
}

.provider-header-editable {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 13px;
    width: 100%;
    cursor: text;
}

.provider-header-editable:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.add-provider-btn {
    position: absolute;
    top: 2px;
    right: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.add-provider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.remove-provider-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-provider-btn:hover {
    background: rgba(220, 53, 69, 0.8);
}

.timeslots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeslot {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.timeslot.am {
    border-left: 4px solid #4CAF50;
}

.timeslot.pm {
    border-left: 4px solid #2196F3;
}

.timeslot.collapsed {
    padding: 6px 12px;
    background: #f0f0f0;
    opacity: 0.7;
    max-height: 40px;
    overflow: hidden;
}

.timeslot.collapsed:hover {
    opacity: 0.9;
    background: #e8e8e8;
}

.timeslot.collapsed .timeslot-controls {
    display: none;
}

.timeslot.collapsed .timeslot-time {
    font-size: 14px;
    margin-bottom: 0;
}

.timeslot-time {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    color: #555;
}

.timeslot-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeslot-controls select,
.timeslot-controls input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.timeslot-controls select:focus,
.timeslot-controls input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.timeslot-controls select:disabled,
.timeslot-controls input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

@media (max-width: 1400px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 16px;
    }

    header h1 {
        font-size: 24px;
    }
}
