/* Sound Heart Clinic - Custom Theme */
:root {
    --sh-primary: #c0392b;
    --sh-primary-dark: #962d23;
    --sh-secondary: #2c3e50;
    --sh-light: #fdf2f0;
    --sh-success: #27ae60;
    --sh-warning: #f39c12;
    --sh-info: #3498db;
}

* { font-family: 'Cairo', sans-serif; }

body { background: #f4f6f9; color: #2c3e50; }

.sh-navbar {
    background: linear-gradient(135deg, var(--sh-primary) 0%, var(--sh-primary-dark) 100%);
}

.sh-navbar .nav-link {
    transition: all 0.2s;
    border-radius: 6px;
    margin: 0 2px;
    padding: 6px 14px !important;
}

.sh-navbar .nav-link:hover { background: rgba(255,255,255,0.15); }

.btn-primary, .bg-primary {
    background-color: var(--sh-primary) !important;
    border-color: var(--sh-primary) !important;
}
.btn-primary:hover { background-color: var(--sh-primary-dark) !important; }

.text-primary { color: var(--sh-primary) !important; }

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card-header {
    background: linear-gradient(90deg, var(--sh-primary), var(--sh-primary-dark));
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    padding: 12px 18px;
}

.stat-card {
    border-right: 4px solid var(--sh-primary);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .stat-number { font-size: 2rem; font-weight: 700; color: var(--sh-primary); }
.stat-card .stat-label { color: #7f8c8d; font-size: 0.9rem; }

.search-result-item:hover { background: var(--sh-light); }

.form-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.form-section-title {
    color: var(--sh-primary);
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 2px solid var(--sh-light);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.form-label { font-weight: 600; font-size: 0.85rem; color: #555; }
.form-check-inline { margin-left: 1rem; margin-right: 0; }

.table thead th {
    background: var(--sh-secondary);
    color: white;
    font-weight: 600;
    border: none;
}

.badge-status-waiting { background: #f39c12; }
.badge-status-in_progress { background: #3498db; }
.badge-status-completed { background: #27ae60; }
.badge-status-cancelled { background: #95a5a6; }

.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sh-primary) 0%, var(--sh-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 420px;
}
.login-card .logo {
    font-size: 4rem;
    color: var(--sh-primary);
    text-align: center;
    margin-bottom: 10px;
}

@media print {
    @page { size: A4; margin: 10mm; }
    body { background: white !important; }
    .no-print, nav, .navbar, .btn, footer { display: none !important; }
    .print-page { box-shadow: none !important; }
    .form-section { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
}

.print-page {
    background: white;
    padding: 20mm 15mm;
    max-width: 210mm;
    min-height: 297mm;
    margin: 20px auto;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.print-header {
    text-align: center;
    border-bottom: 3px double var(--sh-primary);
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.print-header h1 { color: var(--sh-primary); font-size: 1.6rem; margin: 0; font-weight: 700; }
.print-header .subtitle { color: #555; font-size: 0.9rem; }

.print-section {
    border: 1px solid #999;
    border-radius: 4px;
    margin-bottom: 10px;
    page-break-inside: avoid;
}
.print-section-header {
    background: var(--sh-light);
    padding: 4px 10px;
    font-weight: 700;
    color: var(--sh-primary);
    border-bottom: 1px solid #999;
    font-size: 0.95rem;
}
.print-section-body { padding: 8px 12px; font-size: 0.85rem; }
.print-field .value { border-bottom: 1px solid #999; min-width: 80px; display: inline-block; padding: 0 4px; }
