/* ============================================================
   Paradigm Financial Services - Custom Styles
   Bootstrap 5 theme overrides and custom components
   ============================================================ */

:root {
    --brand: #450A12;
    --brand-light: #5C0D18;
    --brand-dark: #2D0609;
    --brand-rgb: 69, 10, 18;
    --bs-primary: var(--brand);
    --bs-primary-rgb: var(--brand-rgb);
}

/* ==================== TYPOGRAPHY ==================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ==================== BRAND COLORS ==================== */
.bg-brand { background-color: var(--brand) !important; }
.bg-brand-light { background-color: var(--brand-light) !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.text-brand { color: var(--brand) !important; }

/* Override for opacity backgrounds */
.bg-brand.bg-opacity-10 {
    background-color: rgba(69, 10, 18, 0.1) !important;
}
.bg-brand.bg-opacity-25 {
    background-color: rgba(69, 10, 18, 0.25) !important;
}
.bg-brand.bg-opacity-50 {
    background-color: rgba(69, 10, 18, 0.5) !important;
}

/* Badge styling for proper contrast */
.badge.bg-brand,
.badge.bg-brand-light,
.badge.bg-brand-dark {
    color: #fff !important;
}
.badge.bg-brand.bg-opacity-10,
.badge.bg-brand.bg-opacity-25 {
    background-color: rgba(69, 10, 18, 0.1) !important;
}
.badge.bg-opacity-10.text-brand,
.badge.bg-opacity-25.text-brand {
    color: var(--brand) !important;
    background-color: rgba(69, 10, 18, 0.1) !important;
}

/* Light backgrounds need darker text for contrast */
.bg-brand.bg-opacity-10 .text-brand,
.bg-opacity-10.bg-brand .text-brand {
    color: var(--brand-dark) !important;
    font-weight: 600;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(69, 10, 18, 0.25);
    transition: all 0.3s ease;
}
.btn-brand:hover, .btn-brand:focus {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(69, 10, 18, 0.35);
    transform: translateY(-2px);
}
.btn-brand:active {
    background: var(--brand-dark) !important;
    box-shadow: 0 2px 8px rgba(69, 10, 18, 0.3) !important;
    transform: translateY(0) !important;
}

.btn-outline-brand {
    color: var(--brand);
    border: 2px solid var(--brand);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-brand:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(69, 10, 18, 0.25);
    transform: translateY(-2px);
}

/* ==================== PUBLIC NAVBAR ==================== */
.navbar-brand-custom {
    background: linear-gradient(135deg, rgba(45,6,9,0.98) 0%, rgba(69,10,18,0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    min-height: 80px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.navbar-brand-custom .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    position: relative;
}
.navbar-brand-custom .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.12);
}
.navbar-brand-custom .nav-link.active {
    color: #fff !important;
    font-weight: 600;
    background-color: rgba(255,255,255,0.15);
}
.navbar-brand-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
.navbar-brand-custom .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem;
}
.navbar-brand-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}
.navbar-brand-custom .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ==================== HERO SECTIONS ==================== */
.hero-section {
    background-color: var(--brand);
    padding: 6rem 0 4rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
}
@media (min-width: 768px) {
    .hero-section { padding: 8rem 0 5rem; }
    .hero-section h1 { font-size: 3.5rem; }
}

/* Home Hero - full height */
.hero-home {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #2D0609 0%, #450A12 50%, #5C0D18 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}
.hero-home .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,6,9,0.8) 0%, rgba(69,10,18,0.7) 100%);
    z-index: 1;
}

/* Decorative blur circles matching Base44 design */
.hero-home .hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.hero-home .hero-decor::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(92,13,24,0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}
.hero-home .hero-decor::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45,6,9,0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}
.hero-home .hero-container {
    position: relative;
    z-index: 2;
}

/* ==================== PORTAL SIDEBAR ==================== */
.portal-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
}
.portal-sidebar .sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.portal-sidebar .sidebar-brand img {
    height: 40px;
    width: auto;
}
.portal-sidebar .sidebar-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}
.portal-sidebar .sidebar-nav {
    padding: 1rem;
    flex: 1;
}
.portal-sidebar .sidebar-nav .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    position: relative;
}
.portal-sidebar .sidebar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.12);
    transform: translateX(4px);
}
.portal-sidebar .sidebar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.portal-sidebar .sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: #fff;
    border-radius: 0 2px 2px 0;
}
.portal-sidebar .sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}
.portal-sidebar .sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 991.98px) {
    .portal-sidebar {
        transform: translateX(-100%);
    }
    .portal-sidebar.show {
        transform: translateX(0);
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
        display: none;
    }
    .sidebar-overlay.show { display: block; }
}

/* ==================== PORTAL CONTENT ==================== */
.portal-content {
    margin-left: 260px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}
.portal-content::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(69,10,18,0.05) 0%, transparent 60%);
    pointer-events: none;
}
@media (max-width: 991.98px) {
    .portal-content { margin-left: 0; }
}

.portal-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.portal-header h6 {
    color: #111827;
    margin: 0;
}
.portal-header .text-dark {
    color: #111827 !important;
}
.portal-header .btn-link {
    color: #6b7280 !important;
}
.portal-header .btn-link:hover {
    color: #111827 !important;
}
.portal-header .text-secondary {
    color: #6b7280 !important;
}
.portal-header .text-muted {
    color: #9ca3af !important;
}
.portal-header .fw-medium,
.portal-header span {
    color: #374151;
}
.portal-header .dropdown-menu {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.portal-main {
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .portal-main { padding: 2rem; }
}

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}
.page-header h4,
.page-header h5 {
    color: #111827;
}
.page-header .text-muted {
    color: #6b7280 !important;
}

/* Portal-specific elements */
.portal-content .nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}
.portal-content .nav-tabs .nav-link {
    color: #6b7280;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}
.portal-content .nav-tabs .nav-link:hover {
    color: var(--brand);
    border-color: rgba(69,10,18,0.2);
}
.portal-content .nav-tabs .nav-link.active {
    color: var(--brand);
    background: transparent;
    border-color: var(--brand);
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: rgba(69,10,18,0.2);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ==================== CARDS & PANELS ==================== */
.content-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.content-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: rgba(69,10,18,0.15);
}
.content-card .card-header-custom {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.content-card .card-header-custom h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}
.content-card .card-body-custom {
    padding: 1.5rem;
}

/* ==================== SERVICE CARDS ==================== */
.service-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    border-color: rgba(69, 10, 18, 0.2);
    box-shadow: 0 12px 32px rgba(69, 10, 18, 0.12);
    transform: translateY(-6px);
}
.service-card .service-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* color set inline, background set inline */
}

/* ==================== VALUE CARDS (About page) ==================== */
.value-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e9ecef;
    height: 100%;
    transition: all 0.3s ease;
}
.value-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: rgba(69, 10, 18, 0.15);
}
.value-card i {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 1rem;
}

/* ==================== BLOG CARDS ==================== */
.blog-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}
.blog-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: rgba(69, 10, 18, 0.15);
}
.blog-card .blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--brand);
    opacity: 0.15;
}
.blog-card .blog-image.has-image {
    opacity: 1;
}
.blog-card .blog-body {
    padding: 1.5rem;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    color: #fff;
    padding: 4rem 0 0;
    position: relative;
}
.site-footer h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1rem;
}
.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}
.site-footer .footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    margin-top: 3rem;
}

/* ==================== FORM STYLES ==================== */
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(69, 10, 18, 0.15);
}

.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.form-control:hover, .form-select:hover {
    border-color: rgba(69, 10, 18, 0.3);
}

.form-control-lg { 
    border-radius: 0.75rem; 
    padding: 0.75rem 1.25rem;
}

/* ==================== AUTH PAGES ==================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 1rem;
    position: relative;
}
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(69, 10, 18, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}
.auth-card {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    border-radius: 1.5rem;
    box-shadow: 0 12px 48px rgba(0,0,0,0.3);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.auth-card .auth-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}
.auth-card h5,
.auth-card .fw-bold {
    color: #fff !important;
}
.auth-card .text-muted,
.auth-card .form-text {
    color: rgba(255,255,255,0.7) !important;
}
.auth-card .form-label {
    color: rgba(255,255,255,0.95);
}
.auth-card .form-control {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}
.auth-card .form-control:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.1);
}
.auth-card .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}
.auth-card .btn-brand {
    background: #fff;
    color: var(--brand);
    border: none;
}
.auth-card .btn-brand:hover {
    background: rgba(255,255,255,0.9);
    color: var(--brand-dark);
}
.auth-card .text-brand {
    color: #fff !important;
}
.auth-card a:not(.btn) {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}
.auth-card a:not(.btn):hover {
    color: #fff;
}
.auth-card .alert {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}
.auth-card .alert-danger {
    background: rgba(220,53,69,0.3);
    border-color: rgba(220,53,69,0.5);
}
.auth-card .alert-success {
    background: rgba(25,135,84,0.3);
    border-color: rgba(25,135,84,0.5);
}
.auth-card .alert-warning {
    background: rgba(255,193,7,0.25);
    border-color: rgba(255,193,7,0.4);
    color: #fff;
}
.auth-card .alert-info {
    background: rgba(13,202,240,0.25);
    border-color: rgba(13,202,240,0.4);
}
.auth-card .bg-brand {
    background: rgba(255,255,255,0.2) !important;
}
.auth-card .bi {
    color: #fff !important;
}
.auth-card .input-group-text {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.7) !important;
}
.auth-card .bg-light {
    background: rgba(255,255,255,0.1) !important;
}
.auth-card .cursor-pointer {
    cursor: pointer;
}
.auth-card button.input-group-text:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* ==================== NOTIFICATION BADGE ==================== */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ==================== USER AVATAR ==================== */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}
.user-avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

/* ==================== TABLE STYLES ==================== */
.table-modern {
    border-radius: 0.75rem;
    overflow: hidden;
}
.table-modern thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    padding: 1rem;
}
.table-modern tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}
.table-modern tbody tr {
    transition: all 0.2s ease;
}
.table-modern tbody tr:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero service card hover effect */
.hero-service-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2) !important;
}

.fade-in-delay-1 { animation-delay: 0.15s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.25s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.35s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.45s; opacity: 0; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--brand);
    color: #fff;
}

::-moz-selection {
    background: var(--brand);
    color: #fff;
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.75rem; }
    .stat-card .stat-value { font-size: 1.5rem; }
    .portal-main { padding: 1rem; }
}

@media (min-width: 768px) {
    .hero-home h1 {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 1200px) {
    .hero-home h1 {
        font-size: 4rem !important;
    }
}

/* ==================== SCROLLBAR ==================== */
.portal-sidebar::-webkit-scrollbar { width: 4px; }
.portal-sidebar::-webkit-scrollbar-track { background: transparent; }
.portal-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

/* ==================== MISC ==================== */
.cursor-pointer { cursor: pointer; }
.text-muted-custom { color: rgba(255,255,255,0.6) !important; }
.border-brand { border-color: var(--brand) !important; }
.rounded-xl { border-radius: 1rem !important; }
.rounded-2xl { border-radius: 1.5rem !important; }
.shadow-soft { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.tracking-wide { letter-spacing: 0.05em; }

/* Extra background colors for service icons */
.bg-purple { background-color: #6f42c1 !important; }
.bg-orange { background-color: #fd7e14 !important; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}
