/* =============================================
   RENT MANAGER V5.0 - ALINMA-INSPIRED THEME
   Premium banking aesthetic: deep navy, lavender
   accents, soft cream backgrounds, modern type
   ============================================= */

/* =============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================= */

:root {
    /* Primary palette — deep navy */
    --navy-900: #0a0e2a;
    --navy-800: #0d1137;
    --navy-700: #151a45;
    --navy-600: #1e2456;
    --navy-500: #2a3168;

    /* Accent — purple / lavender */
    --purple-600: #6b4fa2;
    --purple-500: #7c5cbf;
    --purple-400: #9b7dd4;
    --purple-300: #b8a3e3;
    --purple-200: #d5c9f0;
    --purple-100: #ede8f7;
    --purple-50:  #f6f3fb;

    /* Warm backgrounds — peach / cream */
    --cream-100: #faf7f2;
    --cream-200: #f5efe6;
    --cream-300: #efe7d9;

    /* Neutrals */
    --slate-900: #1a1a3a;
    --slate-800: #2d2d52;
    --slate-700: #3f3f6b;
    --slate-600: #55557e;
    --slate-500: #6b6b8d;
    --slate-400: #8e8ea8;
    --slate-300: #b3b3c6;
    --slate-200: #d4d4e0;
    --slate-100: #ebebf0;
    --slate-50:  #f5f5f8;

    /* Semantic */
    --success: #22a867;
    --success-bg: #e8f8ef;
    --warning: #e8a317;
    --warning-bg: #fdf5e3;
    --danger: #d63a3a;
    --danger-bg: #fce8e8;
    --info: #3a8fd6;
    --info-bg: #e4f0fc;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(13, 17, 55, 0.06);
    --shadow-md: 0 4px 12px rgba(13, 17, 55, 0.08);
    --shadow-lg: 0 8px 24px rgba(13, 17, 55, 0.12);
    --shadow-card: 0 2px 8px rgba(13, 17, 55, 0.06);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   BASE & TYPOGRAPHY
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream-100);
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    color: var(--slate-900);
    line-height: 1.65;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy-800);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--purple-500);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--purple-600);
    text-decoration: none;
}

button, input[type="button"], input[type="submit"] {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* =============================================
   NAVBAR & HEADER
   ============================================= */

.navbar {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    padding: 0;
    color: white;
    box-shadow: 0 4px 20px rgba(10, 14, 42, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.navbar-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
    text-decoration: none !important;
}

.navbar-brand:hover {
    color: var(--purple-300) !important;
    text-decoration: none !important;
}

.navbar-dark .navbar-brand {
    color: white !important;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s var(--ease);
}

.navbar-links a:hover {
    color: white;
    text-decoration: none;
}

/* Bootstrap navbar overrides for Alinma theme */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: white;
    background: rgba(124, 92, 191, 0.2);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background: rgba(124, 92, 191, 0.3);
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link i {
    margin-right: 4px;
    opacity: 0.85;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: rgba(124, 92, 191, 0.15);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(124, 92, 191, 0.2);
}

.user-menu a {
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   GLOBAL SEARCH
   ============================================= */

.global-search {
    position: relative;
    width: 220px;
}

.global-search input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(155, 125, 212, 0.3);
    color: white;
    border-radius: var(--radius-full);
    padding: 7px 14px 7px 34px;
    width: 100%;
    font-size: 0.875rem;
    transition: all 0.2s var(--ease);
}

.global-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.global-search input:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--purple-400);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

.global-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Navbar search override */
.navbar .d-flex .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(155, 125, 212, 0.3);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: all 0.2s var(--ease);
}

.navbar .d-flex .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.navbar .d-flex .form-control:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--purple-400);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

.navbar .btn-outline-light {
    border-color: rgba(155, 125, 212, 0.4);
    color: var(--purple-300);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    transition: all 0.2s var(--ease);
}

.navbar .btn-outline-light:hover {
    background: var(--purple-500);
    border-color: var(--purple-500);
    color: white;
}

/* =============================================
   BREADCRUMBS
   ============================================= */

.breadcrumb-nav {
    padding: 12px 20px;
    font-size: 0.875rem;
    background: white;
    border-bottom: 1px solid var(--slate-100);
}

.breadcrumb-nav a {
    color: var(--purple-500);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.breadcrumb-nav a:hover {
    color: var(--purple-600);
    text-decoration: none;
}

.breadcrumb-nav .separator {
    color: var(--slate-400);
    margin: 0 6px;
}

.breadcrumb-item a {
    color: var(--purple-500);
}

.breadcrumb-item.active {
    color: var(--slate-500);
}

/* =============================================
   CONTAINERS & LAYOUT
   ============================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-fluid {
    padding: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-1 { flex: 0 0 calc(8.333% - 20px); }
.col-2 { flex: 0 0 calc(16.667% - 20px); }
.col-3 { flex: 0 0 calc(25% - 20px); }
.col-4 { flex: 0 0 calc(33.333% - 20px); }
.col-6 { flex: 0 0 calc(50% - 20px); }
.col-8 { flex: 0 0 calc(66.667% - 20px); }
.col-12 { flex: 0 0 calc(100% - 20px); }
.col-md-3 { flex: 0 0 calc(25% - 20px); }
.col-md-6 { flex: 0 0 calc(50% - 20px); }
.col-md-4 { flex: 0 0 calc(33.333% - 20px); }
.col-md-8 { flex: 0 0 calc(66.667% - 20px); }
.col-lg-8 { flex: 0 0 calc(66.667% - 20px); }
.col-lg-4 { flex: 0 0 calc(33.333% - 20px); }
.col-xl { flex: 1 0 0%; }

@media (max-width: 768px) {
    .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-12,
    .col-md-4, .col-md-6, .col-md-8 {
        flex: 0 0 calc(100% - 20px);
    }
}

@media (max-width: 992px) {
    .col-lg-4, .col-lg-8 {
        flex: 0 0 calc(100% - 20px);
    }
}

/* =============================================
   CARDS
   ============================================= */

.card {
    background: white;
    border: 1px solid rgba(13, 17, 55, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 16px 20px;
    background: var(--purple-50);
    border-bottom: 1px solid var(--purple-100);
    font-weight: 600;
    color: var(--navy-800);
    font-size: 0.95rem;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 14px 20px;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-100);
    font-size: 0.875rem;
    color: var(--slate-500);
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(13, 17, 55, 0.06);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-400), var(--purple-600));
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--slate-500);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-800);
}

.stat-change {
    font-size: 0.875rem;
    margin-top: 8px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* =============================================
   BADGES & STATUS
   ============================================= */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-paid, .badge-success, .bg-success {
    background: var(--success-bg);
    color: #15753a;
}

.badge-due, .badge-warning, .bg-warning {
    background: var(--warning-bg);
    color: #8a6110;
}

.badge-late, .badge-danger, .bg-danger {
    background: var(--danger-bg);
    color: #a02929;
}

.badge-partial {
    background: #f5e8fb;
    color: #7c3a99;
}

.badge-upcoming, .badge-info, .bg-info {
    background: var(--info-bg);
    color: #205f99;
}

.badge-pending, .bg-secondary {
    background: var(--slate-100);
    color: var(--slate-600);
}

/* Bootstrap badge overrides */
.badge.bg-success {
    background: var(--success-bg) !important;
    color: #15753a !important;
}

.badge.bg-warning {
    background: var(--warning-bg) !important;
    color: #8a6110 !important;
}

.badge.bg-danger {
    background: var(--danger-bg) !important;
    color: #a02929 !important;
}

.badge.bg-info {
    background: var(--info-bg) !important;
    color: #205f99 !important;
}

.badge.bg-secondary {
    background: var(--slate-100) !important;
    color: var(--slate-600) !important;
}

.badge.bg-primary {
    background: var(--purple-100) !important;
    color: var(--purple-600) !important;
}

/* =============================================
   TABLES
   ============================================= */

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    background: var(--slate-50);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--slate-200);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
    color: var(--slate-800);
}

.table tbody tr {
    transition: background 0.15s var(--ease);
}

.table tbody tr:hover {
    background: var(--purple-50);
}

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

/* Striped table variant */
.table-striped tbody tr:nth-child(even) {
    background: var(--slate-50);
}

.table-striped tbody tr:nth-child(even):hover {
    background: var(--purple-50);
}

/* =============================================
   LINKS & TEXT
   ============================================= */

.unit-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--purple-500);
    transition: color 0.2s var(--ease);
}

.unit-link:hover {
    color: var(--purple-600);
    text-decoration: none;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 16px;
    margin-top: 0;
}

.section-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-500);
    margin-bottom: 12px;
}

.text-muted {
    color: var(--slate-500) !important;
    font-size: 0.875rem;
}

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

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

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

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

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

/* =============================================
   FORMS
   ============================================= */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.form-control {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    background: white;
    color: var(--slate-900);
}

.form-control:focus {
    outline: none;
    border-color: var(--purple-400);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.12);
}

.form-control:disabled {
    background: var(--slate-50);
    color: var(--slate-400);
    cursor: not-allowed;
}

.form-control.error {
    border-color: var(--danger);
}

.form-text {
    display: block;
    font-size: 0.825rem;
    color: var(--slate-500);
    margin-top: 4px;
}

.form-text.error {
    color: var(--danger);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control,
.form-select {
    cursor: pointer;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

select.form-control:focus,
.form-select:focus {
    border-color: var(--purple-400);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.12);
}

.form-check {
    margin-bottom: 12px;
}

.form-check input {
    margin-right: 8px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--purple-500);
    border-color: var(--purple-500);
}

.form-check label {
    cursor: pointer;
}

.form-section {
    border-left: 3px solid var(--purple-400);
    padding-left: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    padding-top: 16px;
}

.form-section-title {
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-align: center;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: white;
    box-shadow: 0 2px 8px rgba(107, 79, 162, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-600), #5a3d8f);
    box-shadow: 0 4px 14px rgba(107, 79, 162, 0.35);
    color: white;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(107, 79, 162, 0.25);
}

.btn-secondary {
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #1d8f57);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 168, 103, 0.25);
}

.btn-success:hover {
    box-shadow: 0 4px 14px rgba(34, 168, 103, 0.35);
    color: white;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b92e2e);
    color: white;
    box-shadow: 0 2px 8px rgba(214, 58, 58, 0.25);
}

.btn-danger:hover {
    box-shadow: 0 4px 14px rgba(214, 58, 58, 0.35);
    color: white;
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #cc8d0e);
    color: white;
    box-shadow: 0 2px 8px rgba(232, 163, 23, 0.25);
}

.btn-warning:hover {
    box-shadow: 0 4px 14px rgba(232, 163, 23, 0.35);
    color: white;
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #2e7cbd);
    color: white;
}

.btn-info:hover {
    color: white;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--purple-500);
    border: 1.5px solid var(--purple-400);
    border-radius: var(--radius-md);
}

.btn-outline-primary:hover {
    background: var(--purple-500);
    color: white;
    border-color: var(--purple-500);
}

.btn-outline, .btn-outline-secondary {
    background: transparent;
    color: var(--slate-600);
    border: 1.5px solid var(--slate-300);
}

.btn-outline:hover, .btn-outline-secondary:hover {
    background: var(--slate-100);
    color: var(--slate-800);
    border-color: var(--slate-400);
}

.btn-outline-success {
    background: transparent;
    color: var(--success);
    border: 1.5px solid var(--success);
}

.btn-outline-success:hover {
    background: var(--success);
    color: white;
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1.5px solid var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-sm, .btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-lg, .btn-large {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-group {
    display: flex;
    gap: 8px;
}

.btn-close {
    opacity: 0.6;
    transition: opacity 0.2s var(--ease);
}

.btn-close:hover {
    opacity: 1;
}

/* =============================================
   MODALS & DIALOGS
   ============================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

/* Bootstrap's .modal is the full-screen backdrop — leave it alone.
   The actual dialog is .modal-dialog (sizing controlled via modal-sm/lg/xl). */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: white;
}

/* Default dialog feels too narrow for our content; bump it. */
.modal-dialog {
    max-width: 720px;  /* default Bootstrap is 500px */
}
.modal-dialog.modal-lg {
    max-width: 920px;
}
.modal-dialog.modal-xl {
    max-width: 1180px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--purple-50);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-800);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--slate-400);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s var(--ease);
}

.modal-close:hover {
    color: var(--slate-800);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--slate-50);
}

.delete-confirm {
    background: rgba(10, 14, 42, 0.55);
}

/* =============================================
   NAVIGATION TABS
   ============================================= */

.nav-tabs {
    display: flex;
    list-style: none;
    border-bottom: 2px solid var(--slate-200);
    gap: 0;
}

.nav-tabs .nav-link {
    padding: 10px 18px;
    color: var(--slate-500);
    font-weight: 500;
    font-size: 0.92rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s var(--ease);
    background: transparent;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--purple-500);
    border-bottom-color: var(--purple-300);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--purple-600);
    border-bottom-color: var(--purple-500);
    font-weight: 600;
    background: transparent;
}

.nav-tab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s var(--ease);
}

.nav-tab:hover {
    color: var(--navy-800);
}

.nav-tab-active {
    background: transparent;
    color: var(--purple-500);
    border-bottom-color: var(--purple-500);
    font-weight: 600;
}

/* Nav pills variant */
.nav-pills .nav-link {
    color: var(--slate-600);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s var(--ease);
}

.nav-pills .nav-link:hover {
    background: var(--purple-50);
    color: var(--purple-600);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: white;
}

/* =============================================
   ALERTS & MESSAGES
   ============================================= */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border-left: 4px solid;
    font-size: 0.92rem;
}

.alert-success {
    background: var(--success-bg);
    color: #15753a;
    border-left-color: var(--success);
}

.alert-warning {
    background: var(--warning-bg);
    color: #8a6110;
    border-left-color: var(--warning);
}

.alert-danger {
    background: var(--danger-bg);
    color: #a02929;
    border-left-color: var(--danger);
}

.alert-info {
    background: var(--info-bg);
    color: #205f99;
    border-left-color: var(--info);
}

.alert a {
    color: inherit;
    text-decoration: underline;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--purple-500);
    animation: slideIn 0.3s var(--ease);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.danger {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.info {
    border-left-color: var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =============================================
   PIN LOCK SCREEN
   ============================================= */

.pin-screen {
    max-width: 360px;
    margin: 100px auto;
    text-align: center;
    padding: 40px 20px;
}

.pin-screen h1 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--navy-800);
}

.pin-screen input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5em;
    padding: 12px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    width: 200px;
    margin-bottom: 24px;
    font-family: monospace;
    transition: border-color 0.2s var(--ease);
}

.pin-screen input:focus {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

.pin-screen .btn {
    width: 100%;
}

/* =============================================
   RECEIPT & INVOICE STYLES
   ============================================= */

.receipt-box {
    border: 2px solid var(--navy-800);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: white;
    overflow: hidden;
    page-break-inside: avoid;
    box-shadow: var(--shadow-md);
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--navy-800);
    padding-bottom: 16px;
}

.receipt-header h2 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    color: var(--navy-800);
}

.receipt-header p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--slate-500);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-100);
}

.receipt-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--navy-800);
    margin-top: 8px;
    padding-top: 12px;
    color: var(--navy-800);
}

.receipt-row.label {
    color: var(--slate-500);
    font-weight: 500;
}

.receipt-row.value {
    text-align: right;
    font-weight: 600;
    color: var(--navy-800);
}

.print-header {
    display: none;
}

/* =============================================
   INTERNATIONALIZATION
   ============================================= */

.ar-text {
    direction: rtl;
    font-family: 'Segoe UI', 'Tahoma', sans-serif;
}

.ar-text.text-right {
    text-align: right;
}

.ar-text.text-left {
    text-align: left;
}

/* =============================================
   PROGRESS BARS
   ============================================= */

.progress {
    background: var(--slate-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--purple-400), var(--purple-600));
    border-radius: var(--radius-full);
    transition: width 0.4s var(--ease);
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, #2ed573, var(--success)) !important;
}

.progress-bar.bg-warning {
    background: linear-gradient(90deg, #ffc048, var(--warning)) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #ff6b6b, var(--danger)) !important;
}

/* =============================================
   DROPDOWNS
   ============================================= */

.dropdown-menu {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    background: white;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--slate-700);
    transition: all 0.15s var(--ease);
}

.dropdown-item:hover, .dropdown-item:focus {
    background: var(--purple-50);
    color: var(--purple-600);
}

.dropdown-item.active, .dropdown-item:active {
    background: var(--purple-500);
    color: white;
}

/* =============================================
   LIST GROUPS
   ============================================= */

.list-group-item {
    border-color: var(--slate-100);
    padding: 12px 18px;
    color: var(--slate-800);
    transition: background 0.15s var(--ease);
}

.list-group-item:hover {
    background: var(--purple-50);
}

.list-group-item.active {
    background: var(--purple-500);
    border-color: var(--purple-500);
}

/* =============================================
   PAGINATION
   ============================================= */

.page-link {
    color: var(--purple-500);
    border-color: var(--slate-200);
    border-radius: var(--radius-sm);
    margin: 0 2px;
    transition: all 0.15s var(--ease);
}

.page-link:hover {
    background: var(--purple-50);
    color: var(--purple-600);
    border-color: var(--purple-300);
}

.page-item.active .page-link {
    background: var(--purple-500);
    border-color: var(--purple-500);
}

/* =============================================
   UTILITIES
   ============================================= */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-bold {
    font-weight: 700;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.border {
    border: 1px solid var(--slate-200);
}

.rounded {
    border-radius: var(--radius-sm);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow {
    box-shadow: var(--shadow-sm);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.cursor-pointer {
    cursor: pointer;
}

.pointer-events-none {
    pointer-events: none;
}

/* Clickable link hover effects for text-decoration-none links */
a.text-decoration-none:hover {
    color: var(--purple-500) !important;
    text-decoration: underline !important;
}

/* .no-print elements are hidden only when printing — see @media print below */

/* Background utilities */
.bg-light {
    background: var(--cream-100) !important;
}

/* Override Bootstrap solid background cards */
.card.bg-primary {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600)) !important;
    border: none !important;
}

.card.bg-success {
    background: linear-gradient(135deg, var(--success), #1d8f57) !important;
    border: none !important;
}

.card.bg-danger {
    background: linear-gradient(135deg, var(--danger), #b92e2e) !important;
    border: none !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, var(--warning), #cc8d0e) !important;
    border: none !important;
}

.card.bg-info {
    background: linear-gradient(135deg, var(--info), #2e7cbd) !important;
    border: none !important;
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    * {
        box-shadow: none !important;
    }

    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    body {
        background: #fff;
        color: #000;
    }

    .navbar {
        display: none !important;
    }

    .breadcrumb-nav {
        display: none !important;
    }

    .btn {
        display: none !important;
    }

    .receipt-box {
        border: 2px solid #000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .print-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.2rem;
        font-weight: 700;
    }

    @page {
        margin: 10mm 10mm 15mm 10mm;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    a[href]:after {
        content: none !important;
    }

    .page-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 10px;
        color: #999;
    }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .navbar-content {
        flex-direction: column;
        gap: 12px;
    }

    .navbar-right {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .global-search {
        width: 100%;
    }

    .row {
        flex-direction: column;
    }

    .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-12 {
        flex: 1 0 auto;
    }

    .table {
        font-size: 0.8rem;
    }

    .table th, .table td {
        padding: 8px 12px;
    }

    .modal-dialog {
        max-width: 95% !important;
        margin: 12px auto;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        top: 70px;
        max-width: none;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .section-title {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .card-body {
        padding: 14px;
    }

    table {
        font-size: 0.75rem;
    }

    .btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* =============================================
   ANIMATIONS & TRANSITIONS
   ============================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.slide-up {
    animation: slideUp 0.3s var(--ease);
}

/* =============================================
   CUSTOM SCROLLBAR
   ============================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-50);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* =============================================
   END OF STYLESHEET
   ============================================= */


/* =============================================
   DESIGN POLISH PASS V5.10
   ============================================= */

/* ---- Typography refresh — Tajawal for everything (excellent Arabic + Latin) ---- */
:root {
    --font-display: 'IBM Plex Sans', 'Tajawal', system-ui, -apple-system, sans-serif;
    --font-body: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 14.5px;
    letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .stat-value, .breadcrumb-item {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
}

/* Arabic-leaning text (anything with [dir="rtl"] or .arabic class) — keep Tajawal */
[dir="rtl"], .arabic {
    font-family: 'Tajawal', sans-serif !important;
    line-height: 1.7;
}


/* ---- Page hero pattern: clearer primary action emphasis ---- */
.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 6px 0 20px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
    flex-wrap: wrap;
}

.page-hero h1, .page-hero h2 {
    margin: 0 0 4px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.page-hero .subtitle {
    color: var(--slate-500);
    font-size: 0.9rem;
    margin: 0;
}

.page-hero .actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Primary action button — bigger and more confident than secondary actions */
.btn-primary-action {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    color: white !important;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px rgba(124, 92, 191, 0.25);
    transition: all 0.2s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.btn-primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 92, 191, 0.35);
    color: white !important;
}

.btn-primary-action:active {
    transform: translateY(0);
}


/* ---- Empty states — show what to do when a list is empty ---- */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--slate-500);
}

.empty-state .icon {
    font-size: 3rem;
    color: var(--slate-300);
    margin-bottom: 16px;
    line-height: 1;
}

.empty-state h4 {
    color: var(--navy-800);
    font-size: 1.05rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.empty-state p {
    color: var(--slate-500);
    font-size: 0.92rem;
    margin: 0 0 20px 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}


/* ---- Action menu (kebab) — replaces crowded button rows in tables ---- */
.action-menu-toggle {
    background: transparent;
    border: 1px solid transparent;
    color: var(--slate-500);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s var(--ease);
}

.action-menu-toggle:hover {
    background: var(--purple-50);
    color: var(--purple-600);
    border-color: var(--purple-100);
}

.action-menu-toggle::after {
    display: none;
}


/* ---- Responsive tables → cards on mobile ---- */
@media (max-width: 720px) {
    .responsive-cards thead {
        display: none;
    }

    .responsive-cards tr {
        display: block;
        background: white;
        border: 1px solid var(--slate-100);
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        padding: 12px 14px;
        box-shadow: var(--shadow-sm);
    }

    .responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        text-align: right;
        font-size: 0.9rem;
    }

    .responsive-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--slate-500);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-right: 12px;
        text-align: left;
    }

    .responsive-cards td:first-child {
        border-bottom: 1px solid var(--slate-100);
        padding-bottom: 10px;
        margin-bottom: 6px;
    }
}


/* ---- Toast notification system (replaces top-of-page alert banners) ---- */
.flash-toast-host {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    pointer-events: none;
}

.flash-toast {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 28px rgba(13, 17, 55, 0.15);
    padding: 14px 18px;
    border-left: 4px solid var(--purple-500);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(420px);
    opacity: 0;
    transition: all 0.35s var(--ease);
    min-width: 280px;
}

.flash-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-toast.fade-out {
    opacity: 0;
    transform: translateX(50px);
}

.flash-toast.success { border-left-color: var(--success); }
.flash-toast.danger  { border-left-color: var(--danger); }
.flash-toast.warning { border-left-color: var(--warning); }
.flash-toast.info    { border-left-color: var(--info); }

.flash-toast .toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.flash-toast.success .toast-icon { color: var(--success); }
.flash-toast.danger  .toast-icon { color: var(--danger); }
.flash-toast.warning .toast-icon { color: var(--warning); }
.flash-toast.info    .toast-icon { color: var(--info); }

.flash-toast .toast-body {
    flex: 1;
    font-size: 0.9rem;
    color: var(--navy-800);
    line-height: 1.5;
}

.flash-toast .toast-close {
    background: transparent;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.1rem;
    line-height: 1;
}

.flash-toast .toast-close:hover {
    color: var(--slate-700);
}

@media (max-width: 720px) {
    .flash-toast-host {
        right: 12px;
        left: 12px;
        top: 12px;
        max-width: none;
    }
    .flash-toast {
        min-width: 0;
    }
}


/* ---- Refined card hover for clickable card grids ---- */
.card-interactive {
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-200);
}


/* ---- Slightly softer Bootstrap badge defaults that conflict with custom palette ---- */
.badge.bg-success-subtle, .badge.bg-warning-subtle,
.badge.bg-danger-subtle, .badge.bg-info-subtle,
.badge.bg-primary-subtle, .badge.bg-secondary-subtle {
    font-weight: 600;
    letter-spacing: 0.02em;
}


/* ---- Cleaner currency formatting helper ---- */
.currency::after {
    content: ' SAR';
    font-size: 0.78em;
    font-weight: 500;
    color: var(--slate-500);
    margin-left: 3px;
}

.currency-ar::after {
    content: ' ريال';
    font-size: 0.85em;
    font-weight: 500;
    color: var(--slate-500);
    margin-left: 4px;
}


/* ---- Auto-style every page's top header as a hero ---- */
/* Targets the existing `<div class="d-flex justify-content-between align-items-center mb-4">`
   pattern when it's the first content row in <main>. No template change required. */
main > .d-flex.justify-content-between.align-items-center.mb-4:first-child,
main > .d-flex.justify-content-between.align-items-center.mb-4.no-print:first-child {
    padding: 4px 0 18px 0;
    margin-bottom: 18px !important;
    border-bottom: 1px solid var(--slate-100);
    align-items: flex-start !important;
    gap: 16px;
    flex-wrap: wrap;
}

main > .d-flex.justify-content-between.align-items-center.mb-4:first-child h1,
main > .d-flex.justify-content-between.align-items-center.mb-4:first-child h2,
main > .d-flex.justify-content-between.align-items-center.mb-4.no-print:first-child h2 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--navy-800);
}

/* Headings starting with a Bootstrap icon should have the icon in brand purple */
main h1 > i.bi:first-child,
main h2 > i.bi:first-child,
main h3 > i.bi:first-child {
    color: var(--purple-500);
    margin-right: 4px;
    opacity: 0.95;
}

/* Inside the page hero, promote the rightmost btn-primary to feel like the primary action */
main > .d-flex.justify-content-between.align-items-center.mb-4:first-child > div:last-child .btn-primary,
main > .d-flex.justify-content-between.align-items-center.mb-4:first-child > .btn-primary,
main > .d-flex.justify-content-between.align-items-center.mb-4.no-print:first-child .btn-primary {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124, 92, 191, 0.22);
    transition: all 0.2s var(--ease);
}

main > .d-flex.justify-content-between.align-items-center.mb-4:first-child .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 92, 191, 0.32);
}

/* Slightly tighten the page-content top spacing so the hero sits well */
main.container-fluid {
    padding-top: 18px !important;
}


/* ---- Polish: turn sparse "title only" rows into proper headers too ---- */
main > h2:first-child,
main > h1:first-child {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--navy-800);
}


/* ---- Subtle improvements to default Bootstrap card spacing/typography ---- */
.card-header h5 {
    margin: 0;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--navy-800);
    letter-spacing: -0.01em;
}

/* Gentler default card hover (the existing one was too aggressive on dense pages) */
.card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: var(--purple-100);
}


/* ---- Action button cluster in table rows: tighter, more refined ---- */
.btn-group-sm > .btn,
.btn.btn-sm {
    padding: 4px 10px;
    font-size: 0.82rem;
}

td .btn-group {
    box-shadow: 0 1px 2px rgba(13, 17, 55, 0.04);
    border-radius: var(--radius-sm);
}


/* ---- Better primary buttons everywhere (subtle gradient + lift) ---- */
.btn-primary {
    background: var(--purple-500);
    border-color: var(--purple-500);
    font-weight: 500;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--purple-600);
    border-color: var(--purple-600);
}


/* ---- Section-divider headings inside cards ---- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 12px;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--slate-100);
}
