/* Custom styles for Sonderbro Vagtplanlægning */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* DataTables customization */
.dataTables_wrapper {
    padding-top: 20px;
}

table.dataTable thead th {
    font-weight: 600;
}

/* Calendar styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calendar-day {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    min-height: 120px;
    background: white;
    transition: box-shadow 0.2s;
}

.calendar-day:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
    background: #f8f9fa;
    opacity: 0.6;
}

.calendar-day.has-shift {
    border-color: var(--primary-color);
    border-width: 2px;
}

.calendar-day-header {
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e9ecef;
}

.shift-badge {
    font-size: 0.75rem;
    margin: 2px 0;
    display: block;
}

/* Assignment status badges */
.badge.status-assigned {
    background-color: var(--success-color);
}

.badge.status-vacant {
    background-color: var(--danger-color);
}

.badge.status-swapped {
    background-color: var(--warning-color);
}

/* Role badges */
.badge.role-mødevært {
    background-color: #0dcaf0;
    color: #000;
}

.badge.role-teknik {
    background-color: #6f42c1;
    color: #fff;
}

/* Vacation conflict warning */
.vacation-conflict {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 10px;
    margin: 10px 0;
}

/* Profile page */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 10px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-color);
    margin: 0 auto 20px;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: auto;
    }
}