/* DAP Billing & Analytics - Professional Dashboard Styles */

:root {
    /* Yanmar Professional Color Scheme - Enterprise Grade */
    --yanmar-red: #E60012;
    --yanmar-red-dark: #CC0010;
    --yanmar-red-light: #FF1A2A;
    --yanmar-red-soft: #FFF0F1;
    --yanmar-red-pale: #FFF8F8;
    
    /* Professional Grays */
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #E5E5E5;
    --neutral-300: #D4D4D4;
    --neutral-400: #A3A3A3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Semantic Colors */
    --success-green: #16A34A;
    --success-light: #DCFCE7;
    --warning-orange: #EA580C;
    --warning-light: #FEF3C7;
    --info-blue: #0284C7;
    --info-light: #E0F2FE;
    
    /* Professional Shadows - Light Gray */
    --box-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --box-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Professional Border Radius */
    --border-radius-sm: 6px;
    --border-radius: 8px;
    --border-radius-md: 10px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
}

/* Global Styles */
body {
    background-color: var(--neutral-50);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--neutral-800); /* Darker text for better contrast */
    line-height: 1.6;
}

/* Modern Dashboard Layout with comfortable padding */
.main-content {
    background-color: var(--neutral-50);
    min-height: calc(100vh - 76px); /* Account for navbar height */
    padding: 2rem 1rem;
}

.container-fluid {
    background-color: var(--neutral-50);
}

/* Add breathing room for all containers */
.container {
    max-width: 1200px;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Ensure all container variations get the padding */
.container-fluid .container,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* Fix excessive white space in Recent Analysis accordion */
#recentAnalysisCollapse {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#recentAnalysisCollapse .accordion-body {
    padding-bottom: 15px !important;
    margin-bottom: 0 !important;
}

.mt-3[style*="margin-bottom: 0"] {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.mt-3[style*="margin-bottom: 0"] .accordion {
    margin-bottom: 0 !important;
}

.mt-3[style*="margin-bottom: 0"] .accordion-item {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Professional Metric Cards with light backgrounds */
.metric-card {
    border: 1px solid var(--neutral-200);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    transition: all 0.2s ease-in-out;
    height: 100%;
    background-color: var(--bg-card, white);
    color: var(--neutral-800); /* Ensure dark text on white background */
}

/* Fix white text visibility issues */
.metric-card .card-text,
.metric-card h3,
.metric-card h4,
.metric-card h5,
.metric-card .text-muted {
    color: var(--neutral-800) !important; /* Force dark text */
}

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

.metric-card .text-danger {
    color: var(--yanmar-red) !important;
}

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

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

.metric-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-1px);
}

/* Default light background for metric cards without specific theme */
.metric-card:not(.card-primary):not(.card-success):not(.card-warning):not(.card-info) {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-card .card-body {
    padding: 1.5rem;
}

.metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: white;
    flex-shrink: 0;
}

/* Very light background metric cards inspired by design examples */
.metric-card.card-primary {
    background: linear-gradient(135deg, #F0F4FF 0%, #E8F2FF 100%);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--border-radius);
}

.metric-card.card-success {
    background: linear-gradient(135deg, #F0FDF4 0%, #E8F5E8 100%);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: var(--border-radius);
}

.metric-card.card-warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: var(--border-radius);
}

.metric-card.card-info {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--border-radius);
}

.metric-icon.bg-primary { background-color: var(--yanmar-red); }
.metric-icon.bg-success { background-color: var(--success-green); }
.metric-icon.bg-warning { background-color: var(--warning-orange); }
.metric-icon.bg-info { background-color: var(--info-blue); }

.metric-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--neutral-900);
}

.metric-card .card-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    /* Ensure mobile charts are responsive */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        border-radius: 6px;
    }
}

/* Professional Tables */
.table-container {
    background: var(--bg-card, white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.table thead th {
    background-color: var(--neutral-800);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    padding: 1rem 1.5rem;
}

.table tbody td {
    padding: 1rem 1.5rem;
    border-color: var(--neutral-200);
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    background: var(--bg-card, white) !important;
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--box-shadow-sm);
}

.navbar-brand {
    color: var(--neutral-900) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--neutral-600) !important;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 4px;
    padding: 12px 20px !important;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.nav-link:hover {
    background-color: var(--yanmar-red-soft);
    color: var(--yanmar-red) !important;
}

.nav-link.active {
    background-color: var(--yanmar-red) !important;
    color: white !important;
    font-weight: 600;
}

.navbar-nav {
    padding: 8px 0;
}

.navbar-brand {
    padding: 12px 20px !important;
}

.navbar {
    padding: 0 !important;
}

.navbar-nav .nav-item {
    margin: 0 2px;
}

/* Login Page Styles - Yanmar Professional Design */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    width: 100vw;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    z-index: 1000;
}

.login-card {
    background: white !important;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.login-card h2,
.login-card .form-label,
.login-card label,
.login-card p,
.login-card small {
    color: var(--neutral-800) !important;
}

.login-card .text-muted {
    color: var(--neutral-500) !important;
}

.login-card .form-control {
    color: var(--neutral-800) !important;
    background-color: white !important;
}

.login-card .input-group-text {
    background-color: var(--neutral-100) !important;
    color: var(--neutral-600) !important;
    border-color: var(--neutral-200) !important;
}

/* Login page button styling - pill shape */
.login-card .btn {
    border-radius: 50px;
    font-weight: 500;
}

/* Dealer Portfolio table font styling */
.dealer-portfolio-table {
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

.dealer-portfolio-table th,
.dealer-portfolio-table td {
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

/* Recent Loan Tranches table font styling */
.recent-tranches-table {
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

.recent-tranches-table th,
.recent-tranches-table td {
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

.login-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background: var(--bg-card, white) !important;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Professional Metric Cards - Enterprise Design */
.metric-card {
    background: var(--bg-card, white);
    border: 1px solid var(--neutral-200);
    border-left: 4px solid var(--yanmar-red);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow-sm);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
    border-left-color: var(--yanmar-red-light);
}

.metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
}

/* Chart Containers */
canvas {
    max-height: 400px;
}

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

/* Table Styles */
.table {
    background: var(--bg-card, white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: var(--yanmar-red);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

/* Form Styles */
.form-control, .form-select {
    border: 1px solid var(--neutral-200);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--yanmar-red);
    box-shadow: 0 0 0 0.2rem rgba(230, 0, 18, 0.1);
    outline: none;
}

/* AI Analytics Input Box - Special styling for light border */
#query {
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

#query:focus {
    border-color: var(--yanmar-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
    outline: none;
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: none;
}

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

.btn-primary {
    background: var(--yanmar-red);
    color: white;
    border: 1px solid var(--yanmar-red);
    box-shadow: var(--box-shadow-sm);
}

.btn-primary:hover {
    background: var(--yanmar-red-dark);
    border-color: var(--yanmar-red-dark);
    box-shadow: var(--box-shadow);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: var(--yanmar-red-dark);
    border-color: var(--yanmar-red-dark);
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card, white);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
    box-shadow: var(--box-shadow-sm);
}

.btn-secondary:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-400);
    box-shadow: var(--box-shadow);
}

/* Professional Tab Styling - Yanmar Design System */
.nav-tabs {
    border-bottom: 1px solid var(--yanmar-red);
}

.nav-tabs .nav-link {
    background-color: var(--bg-card, white);
    color: var(--yanmar-red);
    border: 1px solid var(--yanmar-red);
    border-bottom: none;
    margin-right: 4px;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    padding: 10px 20px;
    box-shadow: var(--box-shadow-xs);
}

.nav-tabs .nav-link:hover {
    background-color: var(--yanmar-red-pale);
    color: var(--yanmar-red-dark);
    border-color: var(--yanmar-red);
    box-shadow: var(--box-shadow-sm);
}

.nav-tabs .nav-link.active {
    background-color: var(--bg-card, white);
    color: var(--yanmar-red);
    border-color: var(--yanmar-red) var(--yanmar-red) white;
    border-bottom: 2px solid white;
    margin-bottom: -2px;
    font-weight: 600;
    box-shadow: var(--box-shadow);
}

/* Tab content styling */
.tab-content {
    border: 1px solid var(--yanmar-red);
    border-top: none;
    background: var(--bg-card, white);
    padding: 20px;
    box-shadow: var(--box-shadow-sm);
    border-radius: 0 0 8px 8px;
}

/* Loss Ratio Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
}

/* Chart fallback styling */
.chart-fallback {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-size: 16px;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
}

/* Dashboard Header - Professional Executive Style with Yanmar Branding */
.dashboard-header {
    background: linear-gradient(135deg, var(--yanmar-red) 0%, var(--yanmar-red-dark) 100%);
    color: white !important;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1,
.dashboard-header p,
.dashboard-header .text-white,
.dashboard-header .text-white-50 {
    color: white !important;
}

.dashboard-header .bi {
    color: white !important;
}

.dashboard-title h1 {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dashboard-title p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Fix all text contrast issues */
.card-body h3,
.card-body h4,
.card-body h5,
.card-body p,
.card-body .card-text {
    color: var(--neutral-800) !important;
}

/* Navigation icon and text fixes */
.navbar .nav-link i,
.navbar .navbar-brand i {
    color: inherit !important;
}

/* Table text visibility */
.table tbody td {
    color: var(--neutral-800) !important;
}

/* Ensure proper contrast for all text elements */
h1, h2, h3, h4, h5, h6, p, span, div {
    color: var(--neutral-800);
}

.text-muted {
    color: var(--neutral-600) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
}

.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #31d2f2 100%);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.75rem;
    border-left: 4px solid;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    border-left-color: var(--success-color);
    color: #0f5132;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border-left-color: var(--info-color);
    color: #055160;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
    color: #664d03;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-color);
    color: #58151c;
}

/* Professional Badge Styles */
.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-danger {
    background-color: var(--yanmar-red);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-info {
    background-color: var(--info-color);
    color: white;
}

/* Professional Hover Effects */
.hover-shadow:hover {
    box-shadow: var(--box-shadow-md);
    transition: box-shadow 0.3s ease;
}

/* Enterprise Card Design */
.card {
    border: 1px solid var(--neutral-200);
    box-shadow: var(--box-shadow-sm);
    transition: all 0.3s ease;
}

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

.card-header {
    background-color: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    font-weight: 600;
}

/* Professional List Group */
.list-group-item {
    border: 1px solid var(--neutral-200);
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: var(--neutral-50);
    border-color: var(--yanmar-red-light);
}

/* Enterprise Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    color: var(--neutral-900);
}

/* Professional Icon Styles */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--yanmar-red-pale);
    color: var(--yanmar-red);
    font-size: 1.25rem;
    box-shadow: var(--box-shadow-xs);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    border-radius: 1rem 1rem 0 0;
    background: var(--light-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 1rem 1rem;
    background: var(--light-color);
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    border: none;
    background: var(--bg-card, white);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: var(--light-color);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    background: var(--bg-card, white);
    border-top: 1px solid var(--border-color);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color) 0%, #6f42c1 100%) 1;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-custom {
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .metric-card .card-body {
        padding: 1rem;
    }
    
    .metric-icon {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
    
    .table-responsive {
        border-radius: 0.5rem;
    }
    
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .card-header,
    .modal,
    .alert {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    body {
        background: var(--bg-card, white);
    }
    
    .table {
        font-size: 12px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #343a40;
        --dark-color: #f8f9fa;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color);
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   ENTERPRISE POLISH - Senior Designer Level Refinements
   ========================================================================== */

/* Typography Scale - Professional Hierarchy */
:root {
    --font-xs: 0.75rem;    /* 12px */
    --font-sm: 0.875rem;   /* 14px */
    --font-base: 1rem;     /* 16px */
    --font-lg: 1.125rem;   /* 18px */
    --font-xl: 1.25rem;    /* 20px */
    --font-2xl: 1.5rem;    /* 24px */
    --font-3xl: 1.875rem;  /* 30px */
    --font-4xl: 2.25rem;   /* 36px */

    /* Timing Functions - Buttery Smooth */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== MICRO-INTERACTIONS ===== */

/* Button Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.2s var(--ease-out-expo);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo);
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--box-shadow-sm);
}

/* Primary Button Polish */
.btn-primary, .btn-danger {
    background: linear-gradient(135deg, var(--yanmar-red) 0%, var(--yanmar-red-dark) 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn-primary:hover, .btn-danger:hover {
    background: linear-gradient(135deg, var(--yanmar-red-light) 0%, var(--yanmar-red) 100%);
    box-shadow: 0 4px 14px rgba(230, 0, 18, 0.4);
}

/* Card Micro-interactions */
.card {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    will-change: transform;
}

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

/* Metric Card Special Hover */
.metric-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(230, 0, 18, 0.15);
}

.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
}

.metric-icon {
    transition: transform 0.3s var(--spring);
}

/* ===== LOADING STATES & SKELETONS ===== */

/* Skeleton Loading Animation */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        var(--neutral-200) 25%,
        var(--neutral-100) 50%,
        var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }
.skeleton-text.long { width: 100%; }

.skeleton-card {
    height: 120px;
    border-radius: var(--border-radius);
}

.skeleton-chart {
    height: 300px;
    border-radius: var(--border-radius);
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neutral-200);
    border-top-color: var(--yanmar-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner.lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* ===== PAGE TRANSITIONS ===== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s var(--ease-out-expo) forwards;
}

/* Staggered Children Animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s var(--ease-out-expo) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s var(--ease-out-back) forwards;
}

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

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card, white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    border-left: 4px solid var(--neutral-400);
    pointer-events: auto;
    animation: slideInRight 0.4s var(--ease-out-expo);
    max-width: 380px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.toast-success { border-left-color: var(--success-green); }
.toast.toast-error { border-left-color: var(--yanmar-red); }
.toast.toast-warning { border-left-color: var(--warning-orange); }
.toast.toast-info { border-left-color: var(--info-blue); }

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: var(--success-light); color: var(--success-green); }
.toast-error .toast-icon { background: var(--yanmar-red-soft); color: var(--yanmar-red); }
.toast-warning .toast-icon { background: var(--warning-light); color: var(--warning-orange); }
.toast-info .toast-icon { background: var(--info-light); color: var(--info-blue); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: var(--font-sm);
    margin-bottom: 2px;
}

.toast-message {
    font-size: var(--font-xs);
    color: var(--neutral-600);
}

.toast-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--neutral-400);
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--neutral-600);
}

.toast.hiding {
    animation: slideOutRight 0.3s var(--ease-in-out) forwards;
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== FOCUS STATES - Accessibility ===== */

*:focus-visible {
    outline: 2px solid var(--yanmar-red);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.3);
}

.form-control:focus-visible,
.form-select:focus-visible {
    border-color: var(--yanmar-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.15);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yanmar-red);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}

/* ===== EMPTY STATES ===== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--neutral-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--neutral-400);
    font-size: 32px;
}

.empty-state-title {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: var(--font-sm);
    color: var(--neutral-500);
    max-width: 400px;
    margin-bottom: 24px;
}

/* ===== NAVIGATION POLISH ===== */

.navbar .nav-link {
    position: relative;
    transition: color 0.2s var(--ease-out-expo);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s var(--ease-out-expo);
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 80%;
}

/* ===== TABLE POLISH ===== */

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

.table tbody tr:hover {
    background-color: var(--yanmar-red-soft) !important;
}

/* Sortable column headers */
.table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}

.table th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.table th.sortable::after {
    content: '↕';
    margin-left: 6px;
    opacity: 0.5;
    font-size: 10px;
}

.table th.sortable.asc::after { content: '↑'; opacity: 1; }
.table th.sortable.desc::after { content: '↓'; opacity: 1; }

/* ===== INPUT POLISH ===== */

.form-control, .form-select {
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: var(--neutral-400);
}

/* Floating Labels Enhancement */
.form-floating > label {
    transition: all 0.2s var(--ease-out-expo);
}

/* Input Group Polish */
.input-group {
    transition: box-shadow 0.2s;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.15);
    border-radius: var(--border-radius);
}

/* ===== PROGRESS INDICATORS ===== */

.progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--neutral-200);
}

.progress-bar {
    transition: width 0.6s var(--ease-out-expo);
    background: linear-gradient(90deg, var(--yanmar-red) 0%, var(--yanmar-red-light) 100%);
}

/* Animated Progress */
.progress-bar.animated {
    background-size: 30px 30px;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 30px 0; }
    to { background-position: 0 0; }
}

/* ===== BADGE POLISH ===== */

.badge {
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 0.4em 0.8em;
    transition: transform 0.2s var(--ease-out-expo);
}

.badge:hover {
    transform: scale(1.05);
}

/* Pulse animation for status badges */
.badge.pulse {
    position: relative;
}

.badge.pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 0.4; }
    50% { box-shadow: 0 0 0 8px currentColor; opacity: 0; }
}

/* ===== DROPDOWN POLISH ===== */

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 8px;
    animation: dropdownFadeIn 0.2s var(--ease-out-expo);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: var(--yanmar-red-soft);
    color: var(--yanmar-red);
}

/* ===== MODAL POLISH ===== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-xl);
    animation: modalSlideIn 0.3s var(--ease-out-expo);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    border-bottom: 1px solid var(--neutral-200);
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--neutral-200);
    padding: 16px 24px;
    gap: 12px;
}

/* ===== TOOLTIP POLISH ===== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 6px 12px;
    background: var(--neutral-800);
    color: white;
    font-size: var(--font-xs);
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s var(--ease-out-expo);
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* ===== COUNT UP ANIMATION ===== */

.count-up {
    display: inline-block;
}

/* ===== CHART CONTAINER POLISH ===== */

.chart-container {
    position: relative;
    background: var(--bg-card, white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.chart-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 0%, rgba(230, 0, 18, 0.02) 100%);
    pointer-events: none;
}

/* ===== HEALTH SCORE GAUGE ANIMATION ===== */

.health-gauge-fill {
    transition: stroke-dashoffset 1s var(--ease-out-expo);
}

/* ===== SMOOTH SCROLL ===== */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== SELECTION STYLING ===== */

::selection {
    background: var(--yanmar-red);
    color: white;
}

/* ===== LINK HOVER EFFECTS ===== */

a:not(.btn):not(.nav-link):not(.dropdown-item) {
    position: relative;
    text-decoration: none;
    transition: color 0.2s;
}

a:not(.btn):not(.nav-link):not(.dropdown-item)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out-expo);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):hover::after {
    width: 100%;
}

/* ==========================================================================
   PREMIUM EMBOSSED CARD EFFECTS - Enterprise Widget Styling
   ========================================================================== */

/* Embossed Card Base - Sophisticated 3D Effect */
.card-embossed {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow:
        /* Outer shadow - depth */
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08),
        /* Inner highlight - embossed top edge */
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        /* Subtle inner shadow - depth perception */
        inset 0 -2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--ease-out-expo);
}

.card-embossed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--yanmar-red) 0%,
        var(--yanmar-red-light) 50%,
        var(--yanmar-red) 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-embossed:hover {
    transform: translateY(-6px);
    box-shadow:
        /* Enhanced outer shadow on hover */
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        /* Inner highlight preserved */
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 6px rgba(0, 0, 0, 0.03);
}

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

/* Embossed Widget Card - For dashboard widgets */
.widget-embossed {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius-lg);
    box-shadow:
        /* Multi-layer depth effect */
        0 1px 1px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.04),
        /* Inner emboss highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.35s var(--ease-out-expo);
    overflow: hidden;
}

.widget-embossed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.widget-embossed:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 2px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Chart Card Embossed - Specific for chart containers */
.chart-embossed {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-lg);
    box-shadow:
        /* Base shadow */
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 2px 4px -1px rgba(0, 0, 0, 0.04),
        /* Lifted effect */
        0 10px 30px -5px rgba(0, 0, 0, 0.08),
        /* Embossed inner highlights */
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        inset 0 -1px 1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s var(--ease-out-expo);
    overflow: hidden;
}

.chart-embossed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--yanmar-red) 20%,
        var(--yanmar-red) 80%,
        transparent 100%);
    opacity: 0.8;
}

.chart-embossed:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 12px -2px rgba(0, 0, 0, 0.1),
        0 4px 8px -2px rgba(0, 0, 0, 0.06),
        0 16px 40px -8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 1px rgba(0, 0, 0, 0.02);
    border-color: #d1d5db;
}

/* Premium Health Score Widget Embossed */
.health-widget-embossed {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow:
        /* Deep layered shadows for premium feel */
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.03),
        0 16px 32px rgba(0, 0, 0, 0.04),
        0 32px 64px rgba(0, 0, 0, 0.05),
        /* Inner emboss - creates raised effect */
        inset 0 2px 8px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.health-widget-embossed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        #10B981 0%,
        #34D399 50%,
        #10B981 100%);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.health-widget-embossed::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.5) 0%,
        transparent 30%);
    pointer-events: none;
    border-radius: inherit;
}

.health-widget-embossed:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.05),
        0 24px 48px rgba(0, 0, 0, 0.06),
        0 40px 80px rgba(0, 0, 0, 0.07),
        inset 0 2px 8px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.02);
}

/* Dark Mode Embossed Cards */
[data-theme="dark"] .card-embossed,
[data-theme="dark"] .widget-embossed,
[data-theme="dark"] .chart-embossed,
[data-theme="dark"] .health-widget-embossed {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card-embossed:hover,
[data-theme="dark"] .widget-embossed:hover,
[data-theme="dark"] .chart-embossed:hover,
[data-theme="dark"] .health-widget-embossed:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.12),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}
