/* Bindura Smart Local Government - Premium UI Stylesheet */
/* ZES Framework v2.0 - Mobile First */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f6e56;
    --primary-dark: #0a5240;
    --primary-light: #14a67e;
    --secondary: #1a365d;
    --accent: #d4a843;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --bg-sidebar-hover: rgba(255,255,255,0.08);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Splash Loader */
.splash-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 1rem;
    transition: opacity 0.4s, visibility 0.4s;
}
.splash-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-loader .spinner {
    width: 48px; height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Auth Pages */
.auth-wrapper {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem 1rem 2rem;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--secondary) 45%, var(--primary) 100%);
    position: relative; overflow: hidden;
}
.auth-wrapper::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%; max-width: 440px;
    position: relative; z-index: 1;
}
.auth-card--wide { max-width: 520px; }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo .logo-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem;
}
.auth-logo h1 { font-size: 1.25rem; font-weight: 700; margin: 0; line-height: 1.3; }
.auth-logo p { color: var(--text-secondary); font-size: 0.8125rem; margin: 0.25rem 0 0; }

/* Public pages layout */
.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-body);
}
.public-page--auth .public-header { position: relative; }

/* Public header */
.public-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.public-header .navbar { padding: 0.625rem 0; }
.public-header .navbar-brand {
    display: flex; align-items: center; gap: 0.625rem;
    text-decoration: none; color: var(--text-primary);
}
.public-header .brand-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.public-header .brand-text {
    font-weight: 700; font-size: 0.9375rem; line-height: 1.2;
    display: flex; flex-direction: column;
}
.public-header .brand-text small {
    font-weight: 500; font-size: 0.6875rem; color: var(--text-muted);
    display: block; margin-top: 1px;
}
.public-header .nav-link {
    font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
    padding: 0.5rem 0.75rem !important; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.public-header .nav-link:hover,
.public-header .nav-link.active { color: var(--primary); background: rgba(15,110,86,0.08); }
.public-header .nav-link--external { display: inline-flex; align-items: center; gap: 0.25rem; }
.public-header .nav-external-icon { font-size: 0.65rem; opacity: 0.75; }
.public-header--transparent .nav-link--external.nav-link--external { color: rgba(255,255,255,0.9); }
.public-header--transparent .nav-link--external:hover,
.public-header--transparent .nav-link--external.active {
    color: #fff; background: rgba(255,255,255,0.12);
}
.public-header .navbar-toggler {
    border: 1px solid var(--border); padding: 0.375rem 0.5rem;
    box-shadow: none;
}
.public-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(15,110,86,0.15); }
.public-header-actions { padding-top: 0.5rem; }
.public-header-actions .btn { justify-content: center; white-space: nowrap; }
@media (min-width: 992px) {
    .public-header-actions { padding-top: 0; }
    .public-header .navbar-nav { gap: 0.125rem; }
}

/* Transparent header on hero */
.public-header--transparent {
    position: absolute; top: 0; left: 0; right: 0;
    background: transparent; border-bottom: none; box-shadow: none;
}
.public-header--transparent .navbar-brand,
.public-header--transparent .brand-text small { color: #fff; }
.public-header--transparent .nav-link { color: rgba(255,255,255,0.85); }
.public-header--transparent .nav-link:hover,
.public-header--transparent .nav-link.active {
    color: #fff; background: rgba(255,255,255,0.12);
}
.public-header--transparent .navbar-toggler {
    border-color: rgba(255,255,255,0.35);
    filter: invert(1);
}
.public-header--transparent .navbar-collapse {
    background: rgba(10, 82, 64, 0.97);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(12px);
}
@media (min-width: 992px) {
    .public-header--transparent .navbar-collapse {
        background: transparent; padding: 0; margin-top: 0;
    }
}

/* Public footer */
.public-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem 0 1rem;
    margin-top: auto;
}
.public-footer-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.public-footer-brand i { color: var(--primary); font-size: 1.25rem; }
.public-footer-desc {
    font-size: 0.8125rem; color: var(--text-secondary);
    line-height: 1.55; margin: 0; max-width: 280px;
}
.public-footer h6 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.625rem;
}
.public-footer-links {
    list-style: none; padding: 0; margin: 0;
}
.public-footer-links li { margin-bottom: 0.375rem; }
.public-footer-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.8125rem; transition: var(--transition);
}
.public-footer-links a:hover { color: var(--primary); }
.public-footer-contact li {
    font-size: 0.8125rem; color: var(--text-secondary);
    display: flex; align-items: flex-start; gap: 0.5rem;
}
.public-footer-contact i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.public-footer-bottom {
    margin-top: 1.5rem; padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center; font-size: 0.75rem; color: var(--text-muted);
    line-height: 1.6;
}

/* Public content pages */
.public-content {
    flex: 1;
    padding: 1.5rem 0 2rem;
}
.public-content-inner {
    max-width: 720px;
}
.public-content-inner--wide {
    max-width: 840px;
}
.public-content h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700; margin-bottom: 0.75rem; line-height: 1.25;
}
.public-content .cms-body {
    font-size: 0.9375rem; line-height: 1.7; color: var(--text-primary);
}
.public-content .cms-body p { margin-bottom: 0.875rem; }
.public-content .cms-body p:last-child { margin-bottom: 0; }
.public-content .cms-body .lead { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.25rem; }
.public-content .cms-body h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.625rem; color: var(--text-primary); }
.public-content .cms-body h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.public-content .cms-body h3 i { color: var(--primary); }
.public-content .cms-body ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.public-content .cms-body ul li { margin-bottom: 0.375rem; font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.public-content .cms-body a.btn { margin-right: 0.5rem; margin-bottom: 0.5rem; }
.cms-service-block {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1.125rem 1.25rem;
    margin-bottom: 0.875rem;
}
.cms-service-block p { margin-bottom: 0.5rem; }
.cms-service-block p:last-of-type { margin-bottom: 0; }

/* Landing Page */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 60%, var(--primary) 100%);
    color: #fff; position: relative; overflow: hidden;
    padding: 5.5rem 0 3rem;
}
.landing-hero::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px;
    background: var(--bg-body);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    padding: 0.375rem 0.875rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 500; margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(1.625rem, 5vw, 2.75rem);
    font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem;
}
.hero-subtitle {
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    opacity: 0.9; max-width: 520px; margin-bottom: 1.25rem; line-height: 1.6;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-panel {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(20px);
    border-radius: var(--radius-lg); padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-panel-item {
    background: rgba(255,255,255,0.15); border-radius: var(--radius-sm);
    padding: 0.875rem; height: 100%;
}
.hero-panel-item i { font-size: 1.25rem; display: block; }
.hero-panel-item span { font-size: 0.75rem; margin-top: 0.375rem; display: block; opacity: 0.95; }

.landing-services {
    padding: 2rem 0 2.5rem;
    position: relative; z-index: 2;
}
.landing-services-header {
    text-align: center; margin-bottom: 1.25rem;
}
.landing-services-header h2 {
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 700; margin-bottom: 0.375rem;
}
.landing-services-header p {
    font-size: 0.875rem; color: var(--text-secondary); margin: 0;
}

.service-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow-sm);
    transition: var(--transition); border: 1px solid var(--border);
    height: 100%;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card h5 { font-size: 0.9375rem; margin-bottom: 0.375rem; }
.service-card p { font-size: 0.8125rem; line-height: 1.55; }
.service-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; margin-bottom: 0.75rem;
}
.service-icon.green { background: rgba(15,110,86,0.1); color: var(--primary); }
.service-icon.blue { background: rgba(59,130,246,0.1); color: var(--info); }
.service-icon.amber { background: rgba(245,158,11,0.1); color: var(--warning); }
.service-icon.red { background: rgba(239,68,68,0.1); color: var(--danger); }
.service-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.service-icon.teal { background: rgba(20,166,126,0.1); color: var(--primary-light); }

/* Bindura public web portal callout */
.bindura-web-callout {
    padding: 2rem 0 0.5rem;
    position: relative; z-index: 2;
}
.bindura-web-callout-inner {
    display: flex; gap: 1.25rem; align-items: flex-start;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.bindura-web-callout--compact .bindura-web-callout-inner {
    padding: 1.25rem; margin-bottom: 1.25rem;
}
.bindura-web-callout-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.bindura-web-callout-eyebrow {
    font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--primary); margin-bottom: 0.25rem;
}
.bindura-web-callout-title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700; margin-bottom: 0.625rem;
}
.bindura-web-callout-lead {
    font-size: 0.9375rem; line-height: 1.65; color: var(--text-secondary);
    margin-bottom: 1rem;
}
.bindura-web-link {
    color: var(--primary); font-weight: 600; text-decoration: none;
}
.bindura-web-link:hover { text-decoration: underline; }
.bindura-web-benefits { margin-bottom: 1rem; }
.bindura-benefit-card {
    background: var(--bg-body); border-radius: var(--radius-sm);
    padding: 1rem 1.125rem; height: 100%; border: 1px solid var(--border);
}
.bindura-benefit-card h3 {
    font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.625rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.bindura-benefit-card h3 i { color: var(--primary); }
.bindura-benefit-card ul {
    margin: 0; padding-left: 1.125rem; font-size: 0.8125rem;
    color: var(--text-secondary); line-height: 1.6;
}
.bindura-benefit-card li + li { margin-top: 0.375rem; }
.bindura-web-callout-actions {
    display: flex; flex-wrap: wrap; gap: 0.625rem;
}
.bindura-web-callout-summary { font-size: 0.875rem; margin-bottom: 1rem !important; }
.cms-zes-portal-note {
    background: rgba(15,110,86,0.06); border-color: rgba(15,110,86,0.15);
}
.cms-zes-portal-note h3 { color: var(--primary); }

/* Dashboard Layout */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: #cbd5e1;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 1040; overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex; flex-direction: column;
}
.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 0.75rem;
}
.sidebar-brand { font-weight: 700; font-size: 1.0625rem; color: #fff; text-decoration: none; }
.sidebar-brand span { color: var(--accent); }
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; }
.nav-section { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; padding: 0.75rem 0.75rem 0.5rem; }
.nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 0.75rem; border-radius: var(--radius-sm);
    color: #94a3b8; text-decoration: none; font-size: 0.875rem; font-weight: 500;
    transition: var(--transition); margin-bottom: 2px;
}
.nav-link:hover { background: var(--bg-sidebar-hover); color: #e2e8f0; }
.nav-link.active { background: rgba(15,110,86,0.25); color: #fff; }
.nav-link i { font-size: 1.125rem; width: 1.25rem; text-align: center; }
.nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 0.6875rem; padding: 0.125rem 0.5rem; border-radius: 50px; }

.main-content {
    flex: 1; margin-left: var(--sidebar-width);
    min-height: 100vh; display: flex; flex-direction: column;
}

.top-navbar {
    height: var(--navbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 1.5rem;
    position: sticky; top: 0; z-index: 1030;
    gap: 1rem;
}
.sidebar-toggle {
    display: none; background: none; border: none;
    font-size: 1.375rem; color: var(--text-primary); cursor: pointer; padding: 0.25rem;
}
.navbar-search {
    flex: 1; max-width: 400px; position: relative;
}
.navbar-search input {
    width: 100%; padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--border); border-radius: 50px;
    background: var(--bg-body); font-size: 0.875rem;
    transition: var(--transition);
}
.navbar-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,110,86,0.15); }
.navbar-search i { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.navbar-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-action-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background: var(--bg-body);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); cursor: pointer; position: relative;
    transition: var(--transition);
}
.nav-action-btn:hover { background: var(--border); color: var(--text-primary); }
.nav-action-btn .badge-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; background: var(--danger);
    border-radius: 50%; border: 2px solid var(--bg-card);
}
.user-menu { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; padding: 0.375rem 0.75rem; border-radius: 50px; transition: var(--transition); }
.user-menu:hover { background: var(--bg-body); }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.8125rem; font-weight: 600; overflow: hidden; flex-shrink: 0;
}
.user-avatar img, .user-avatar .avatar-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.profile-avatar-lg {
    width: 120px; height: 120px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 600; overflow: hidden;
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-avatar { width: 36px; height: 36px; font-size: 0.75rem; }
.user-info { line-height: 1.3; }
.user-info .name { font-size: 0.875rem; font-weight: 600; }
.user-info .role { font-size: 0.75rem; color: var(--text-muted); }

.page-content { padding: 1.25rem; flex: 1; }
.page-header { margin-bottom: 1rem; }
.page-header h1 { font-size: 1.375rem; font-weight: 700; margin: 0 0 0.125rem; line-height: 1.3; }
.page-header .breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.page-header .breadcrumb a { color: var(--primary); text-decoration: none; }

/* Stats Cards */
.stat-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 1.125rem; border: 1px solid var(--border);
    transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .stat-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; margin-bottom: 0.625rem;
}
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat-card .stat-label { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.25rem; }
.stat-card .stat-change { font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Cards */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-header {
    padding: 1rem 1.125rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: transparent; flex-wrap: wrap; gap: 0.5rem;
}
.card-header h5 { font-size: 0.9375rem; font-weight: 600; margin: 0; }
.card-body { padding: 1.125rem; }

/* Tables */
.table-responsive { border-radius: var(--radius-sm); overflow: hidden; }
.table { margin: 0; font-size: 0.875rem; }
.table thead th {
    background: var(--bg-body); font-weight: 600; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-secondary); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem; white-space: nowrap;
    position: sticky; top: 0;
}
.table tbody td { padding: 0.875rem 1rem; vertical-align: middle; border-color: var(--border); }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: rgba(15,110,86,0.03); }

/* Forms */
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.375rem; }
.form-control, .form-select {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem; font-size: 0.875rem;
    transition: var(--transition); background: var(--bg-card); color: var(--text-primary);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,110,86,0.12);
}
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: 0.8125rem; }

/* Buttons */
.btn {
    font-weight: 600; font-size: 0.875rem; border-radius: var(--radius-sm);
    padding: 0.625rem 1.25rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }

/* Badges */
.badge { font-weight: 600; font-size: 0.75rem; padding: 0.35em 0.75em; border-radius: 50px; }
.bg-success-subtle { background: rgba(16,185,129,0.12) !important; }
.bg-warning-subtle { background: rgba(245,158,11,0.12) !important; }
.bg-danger-subtle { background: rgba(239,68,68,0.12) !important; }
.bg-info-subtle { background: rgba(59,130,246,0.12) !important; }
.bg-primary-subtle { background: rgba(15,110,86,0.12) !important; }
.bg-secondary-subtle { background: rgba(100,116,139,0.12) !important; }
.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(--primary) !important; }

/* Toast Notifications */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; }
.toast-slg {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem; min-width: 320px; max-width: 420px;
    display: flex; align-items: flex-start; gap: 0.75rem;
    animation: slideIn 0.3s ease; margin-bottom: 0.5rem;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-slg .toast-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.125rem; }
.toast-slg.success .toast-icon { color: var(--success); }
.toast-slg.error .toast-icon { color: var(--danger); }
.toast-slg.warning .toast-icon { color: var(--warning); }
.toast-slg.info .toast-icon { color: var(--info); }
.toast-slg .toast-body { flex: 1; }
.toast-slg .toast-title { font-weight: 600; font-size: 0.875rem; }
.toast-slg .toast-message { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.125rem; }

/* Empty State */
.empty-state { text-align: center; padding: 2rem 1rem; }
.empty-state i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.empty-state h5 { font-weight: 600; margin-bottom: 0.375rem; font-size: 1rem; }
.empty-state p { color: var(--text-secondary); font-size: 0.8125rem; max-width: 320px; margin: 0 auto 1rem; line-height: 1.5; }

/* Modal */
.modal-content { border: none; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.modal-body { padding: 1.5rem; }
.modal-footer { border-top: 1px solid var(--border); padding: 1rem 1.5rem; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, rgba(226,232,240,0.5) 50%, var(--border) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Footer */
.app-footer {
    padding: 1rem 1.5rem; border-top: 1px solid var(--border);
    font-size: 0.8125rem; color: var(--text-muted); text-align: center;
}

/* Overlay */
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1035;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .user-info { display: none; }
    .navbar-search { display: none; }
    .top-navbar { padding: 0 1rem; height: 56px; }
    .row.g-3, .row.g-4 { --bs-gutter-y: 0.75rem; }
    .row.g-4.mb-4, .row.g-3.mb-4 { margin-bottom: 0.875rem !important; }
}
@media (max-width: 575.98px) {
    .page-content { padding: 0.875rem; }
    .auth-card { padding: 1.25rem; }
    .auth-logo { margin-bottom: 1.125rem; }
    .auth-logo .logo-icon { width: 48px; height: 48px; font-size: 1.25rem; }
    .stat-card { padding: 0.875rem; }
    .stat-card .stat-value { font-size: 1.25rem; }
    .stat-card .stat-icon { width: 36px; height: 36px; margin-bottom: 0.5rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .landing-hero { padding: 5rem 0 2rem; }
    .landing-services { padding: 1.5rem 0 2rem; }
    .bindura-web-callout-inner { flex-direction: column; }
    .bindura-web-callout-icon { width: 44px; height: 44px; font-size: 1.25rem; }
    .service-card { padding: 1rem; }
    .public-footer { padding: 1.5rem 0 0.875rem; }
    .public-footer-bottom { margin-top: 1rem; padding-top: 0.75rem; }
    .public-content { padding: 1.125rem 0 1.5rem; }
    .table thead th, .table tbody td { padding: 0.625rem 0.75rem; font-size: 0.8125rem; }
    .card-body { padding: 0.875rem; }
    .card-header { padding: 0.75rem 0.875rem; }
    .page-header h1 { font-size: 1.25rem; }
    .btn-lg { padding: 0.625rem 1.25rem; font-size: 0.9375rem; }
}

/* Print */
@media print {
    .sidebar, .top-navbar, .app-footer, .btn, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; }
}

/* Chart container */
.chart-container { position: relative; height: 300px; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -1.625rem; top: 0.25rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary); border: 2px solid var(--bg-card);
}
.timeline-item .time { font-size: 0.75rem; color: var(--text-muted); }

/* Filter bar */
.filter-bar {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-bottom: 0.875rem; align-items: center;
}
.filter-bar .form-control, .filter-bar .form-select { max-width: 200px; }

/* Receipt */
.receipt-box {
    max-width: 480px; margin: 0 auto;
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 2rem; background: var(--bg-card);
}
.receipt-box .receipt-header { text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1rem; }
