:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --secondary: #334155;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif; }
body { background-color: var(--bg-page); color: #1e293b; direction: rtl; text-align: right; min-height: 100vh; }
.portal-header {
    background: #ffffff; border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 50;
}
.header-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.header-logo-badge {
    width: 42px; height: 42px; background: #e6f7f5; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.header-titles h1 { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.header-titles p { font-size: 0.75rem; color: #64748b; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem;
    border-radius: 10px; font-size: 0.82rem; font-weight: 600; text-decoration: none;
    cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border: 1.5px solid var(--border-color); color: #475569; }
.btn-outline:hover { background: #f1f5f9; color: #0f172a; }
.btn-danger { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.btn-danger:hover { background: #fee2e2; }
.container { max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem; }
.user-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border: 1px solid rgba(13, 148, 136, 0.2); border-radius: 20px;
    padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.user-hero-info { display: flex; align-items: center; gap: 1.25rem; }
.user-avatar {
    width: 68px; height: 68px; border-radius: 50%; background: #e0f2fe;
    color: #0284c7; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.user-details h2 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 0.25rem; }
.user-meta-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.78rem; }
.meta-tag {
    background: #fff; border: 1px solid var(--border-color); padding: 0.2rem 0.6rem;
    border-radius: 6px; color: #475569; display: inline-flex; align-items: center; gap: 0.3rem;
}
.meta-tag-highlight { background: #e6f7f5; border-color: #99f6e4; color: #0f766e; font-weight: 600; }
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.section-card {
    background: var(--card-bg); border-radius: 18px; border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); overflow: hidden; margin-bottom: 1.5rem;
}
.section-card-header {
    padding: 1rem 1.25rem; background: #fafafa; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
}
.section-card-title {
    font-size: 0.98rem; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 0.5rem;
}
.section-card-body { padding: 1.25rem; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.doc-item {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 0.85rem 1rem;
}
.doc-item-label { font-size: 0.78rem; color: #64748b; margin-bottom: 0.25rem; }
.doc-item-value { font-size: 0.92rem; font-weight: 700; color: #0f172a; }
.badge {
    display: inline-block; padding: 0.25rem 0.65rem; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: right; }
.data-table th { background: #f1f5f9; color: #475569; padding: 0.75rem; font-weight: 600; border-bottom: 1.5px solid var(--border-color); }
.data-table td { padding: 0.75rem; border-bottom: 1px solid var(--border-color); color: #334155; }
.data-table tr:hover td { background: #f8fafc; }

/* Appointment Booking Module Styles - Cleaned */

.badge-danger { background: #fee2e2; color: #991b1b; }

.btn-table-cancel {
    background: #fee2e2; border: 1px solid #fecaca; color: #dc2626;
    border-radius: 6px; padding: 0.25rem 0.55rem; font-size: 0.74rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
}
.btn-table-cancel:hover { background: #fca5a5; color: #7f1d1d; }


