/* ========== MAIN STYLES ========== */
/* Fælles styles for alle sider i booking-systemet */

:root {
    --primary: #2c3e50;
    --primary-light: #34495e;
    --accent: #c47a51;
    --accent-light: #d68c63;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-body: #f8f9fa;
    --bg-panel: #ffffff;
    --border: #e9ecef;
    --border-focus: #c47a51;
    --shadow: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-hover: 0 4px 6px rgba(0,0,0,0.03);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: var(--bg-body);
    min-height: 100vh;
}

/* ========== HEADER ========== */
.demo-header {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 1rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eae6e3;
    margin-bottom: 20px;
}

.logo {
    font-size: 1.9rem;
    font-weight: 450;
    letter-spacing: -0.5px;
    color: #2b2b2b;
}

.logo span {
    font-weight: 300;
    color: #8f7a6e;
}

.logo-img {
    max-height: 50px;
    width: auto;
    vertical-align: middle;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========== KNAPPER ========== */
.btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--primary);
    display: inline-block;
}

.btn:hover {
    background: #f8f9fa;
    border-color: #d0d4d8;
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn.primary:hover {
    background: var(--accent-light);
}

.btn.secondary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn.secondary:hover {
    background: var(--primary-light);
}

/* ========== FORMULARER ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ========== BESKEDER ========== */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 24px;
    display: none;
    font-size: 0.95rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-content h2, .modal-content h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.modal-btn {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn:hover {
    background: #f8f9fa;
}

.modal-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.modal-btn.primary:hover {
    background: var(--accent-light);
}

/* ========== TABS ========== */
.tab-bar {
    display: flex;
    gap: 8px;
    margin: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.tab {
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
}

.tab:hover {
    color: var(--primary);
    background: #f8f9fa;
}

.tab.active {
    color: var(--accent);
    background: #fef6f0;
}

.tab-content {
    display: none;
    padding: 0 24px 24px;
}

.tab-content.active {
    display: block;
}

/* ========== AUTH BOKSE ========== */
.auth-box {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
}

.auth-box h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}

.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ========== DASHBOARD ========== */
.welcome-box {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin: 24px 24px 20px;
}

.welcome-box h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 8px;
}

.welcome-box p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 0 24px 30px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-light);
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin: 30px 24px 16px;
}

/* ========== BOOKING TABEL ========== */
.bookings-table {
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.bookings-table th {
    background: #f8f9fa;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.bookings-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.bookings-table tr:last-child td {
    border-bottom: none;
}

.bookings-table tr:hover td {
    background: #f8f9fa;
}

.booking-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-upcoming {
    background: #e3f2fd;
    color: #0d47a1;
}

.status-completed {
    background: #e8f5e9;
    color: #1b5e20;
}

.status-cancelled {
    background: #ffebee;
    color: #b71c1c;
}

.service-badge {
    display: inline-block;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 2px;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 0 24px 24px;
    font-size: 0.95rem;
}

/* ========== ANIMATIONER ========== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.shake {
    animation: shake 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* ========== RESPONSIVT ========== */
@media (max-width: 768px) {
    .demo-header {
        padding: 1rem 1.5rem;
    }
    
    .bookings-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: calc(100% - 30px);
        margin: 0 15px 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 0 15px 20px;
    }
    
    .welcome-box {
        margin: 15px;
    }
    
    .section-title {
        margin: 20px 15px 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        padding: 20px;
    }
}