:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
}

body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.stat-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.blue { border-left-color: #0d6efd; }
.stat-card.green { border-left-color: #198754; }
.stat-card.orange { border-left-color: #fd7e14; }
.stat-card.red { border-left-color: #dc3545; }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.qr-card {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 10px;
}

.qr-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.qr-card.free {
    border: 2px solid #198754;
    background: #f0fff4;
}

.qr-card.occupied {
    border: 2px solid #dc3545;
    background: #fff5f5;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status-waiting { background: #fff3cd; color: #856404; }
.status-in_progress { background: #cfe2ff; color: #084298; }
.status-completed { background: #d1e7dd; color: #0a3622; }
.status-cancelled { background: #f8d7da; color: #842029; }

.status-paid { background: #d1e7dd; color: #0a3622; }
.status-partial { background: #fff3cd; color: #856404; }
.status-pending { background: #f8d7da; color: #842029; }

#qr-reader {
    border: 3px dashed #0d6efd;
    border-radius: 12px;
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

#qr-reader__scan_region {
    border-radius: 8px;
}

.patient-info-card {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.receipt {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.receipt h4 {
    text-align: center;
    border-bottom: 2px dashed #333;
    padding-bottom: 10px;
}

.receipt .receipt-row {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.receipt .total-row {
    border-top: 2px dashed #333;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 10px;
    padding-top: 10px;
}

table.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    border-radius: 8px;
}

.form-control, .form-select {
    border-radius: 8px;
}

.alert {
    border-radius: 10px;
    border: none;
}

.search-box {
    position: relative;
}

.search-box .bi-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    padding-left: 36px;
}

@media print {
    .navbar, .no-print {
        display: none !important;
    }
    body {
        background: white;
    }
}
