/* JasaMobile Web - Modern Professional Design */

/* =====================================================
   CSS Variables - Modern Color Palette
   ===================================================== */
:root {
    /* Primary Colors - Modern Blue */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Accent Colors - Vibrant Purple */
    --accent-400: #a78bfa;
    --accent-500: #8b5cf6;
    --accent-600: #7c3aed;

    /* Success Colors */
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;

    /* Warning Colors */
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    /* Danger Colors */
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    --gradient-primary-soft: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #ea580c);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-dark: linear-gradient(135deg, #1f2937, #111827);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-glow-accent: 0 0 40px rgba(139, 92, 246, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =====================================================
   Base Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   App Container & Layout
   ===================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding-top: 80px;
    background: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 100%);
}

/* =====================================================
   Modern Navbar
   ===================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-600) !important;
    background: var(--primary-50);
}

.nav-link.active {
    color: var(--primary-600) !important;
    background: var(--primary-50);
}

.nav-link i {
    font-size: 1.1rem;
}

/* =====================================================
   Modern Buttons
   ===================================================== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary-500);
    color: var(--primary-600);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    color: white;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--gray-700);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

.btn-icon-lg {
    width: 48px;
    height: 48px;
}

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

/* Floating Action Button */
.btn-fab {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.btn-fab:hover {
    transform: scale(1.1);
}

/* =====================================================
   Modern Cards
   ===================================================== */
.card {
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
}

/* Service Card - Modern Style */
.service-card {
    cursor: pointer;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.service-card .service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.service-card .price-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Stat Card - Dashboard Style */
.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: translate(30%, -30%);
    opacity: 0.1;
}

.stat-card.stat-primary::before {
    background: var(--primary-500);
}

.stat-card.stat-success::before {
    background: var(--success-500);
}

.stat-card.stat-warning::before {
    background: var(--warning-500);
}

.stat-card.stat-danger::before {
    background: var(--danger-500);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card .stat-icon.icon-primary {
    background: var(--primary-100);
    color: var(--primary-600);
}

.stat-card .stat-icon.icon-success {
    background: var(--success-100);
    color: var(--success-600);
}

.stat-card .stat-icon.icon-warning {
    background: var(--warning-100);
    color: var(--warning-600);
}

.stat-card .stat-icon.icon-danger {
    background: var(--danger-100);
    color: var(--danger-600);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-card .stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
}

.stat-card .stat-change.positive {
    background: var(--success-50);
    color: var(--success-600);
}

.stat-card .stat-change.negative {
    background: var(--danger-50);
    color: var(--danger-600);
}

/* Dashboard stat (old compatibility) */
.dashboard-stat {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow);
}

.dashboard-stat .icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    background: var(--gradient-primary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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.05'%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");
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
}

.hero-search {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.hero-search input:focus {
    outline: none;
}

.hero-search .btn {
    padding: 1rem 2rem;
}

/* =====================================================
   Category Cards
   ===================================================== */
.category-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.category-card .icon-wrapper,
.category-card .icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    transition: var(--transition);
}

.category-card:hover .icon-wrapper,
.category-card:hover .icon {
    transform: scale(1.1);
}

.category-card .icon-wrapper.bg-primary-soft,
.category-card .bg-primary-soft {
    background: var(--primary-100);
    color: var(--primary-600);
}

.category-card .icon-wrapper.bg-success-soft,
.category-card .bg-success-soft {
    background: var(--success-100);
    color: var(--success-600);
}

.category-card .icon-wrapper.bg-warning-soft,
.category-card .bg-warning-soft {
    background: var(--warning-100);
    color: var(--warning-600);
}

.category-card .icon-wrapper.bg-danger-soft,
.category-card .bg-danger-soft {
    background: var(--danger-100);
    color: var(--danger-600);
}

.category-card .icon-wrapper.bg-accent-soft {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-500);
}

.category-card h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* =====================================================
   Forms - Modern Style
   ===================================================== */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--primary-100);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-text {
    color: var(--gray-500);
    font-size: 0.8125rem;
}

/* Floating Label Modern */
.form-floating>.form-control,
.form-floating>.form-select {
    height: calc(3.5rem + 4px);
}

.form-floating>label {
    padding: 1rem;
    color: var(--gray-500);
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* Input Group */
.input-group-text {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-500);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 3rem;
    border-radius: var(--radius-full);
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
}

/* =====================================================
   Badges - Modern Style
   ===================================================== */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.badge-primary,
.bg-primary {
    background: var(--primary-500) !important;
    color: white;
}

.badge-success,
.bg-success {
    background: var(--success-500) !important;
    color: white;
}

.badge-warning,
.bg-warning {
    background: var(--warning-500) !important;
    color: white;
}

.badge-danger,
.bg-danger {
    background: var(--danger-500) !important;
    color: white;
}

.badge-info,
.bg-info {
    background: #0891b2 !important;
    color: white;
}

.bg-secondary {
    background: var(--gray-500) !important;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.status-badge.status-online::before {
    background: var(--success-500);
}

.status-badge.status-away::before {
    background: var(--warning-500);
}

.status-badge.status-offline::before {
    background: var(--gray-400);
    animation: none;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* =====================================================
   Avatar - Modern Style
   ===================================================== */
.avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 0.625rem;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
}

.avatar-2xl {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
}

.avatar-placeholder {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
}

.avatar-status.online {
    background: var(--success-500);
}

.avatar-status.away {
    background: var(--warning-500);
}

.avatar-status.offline {
    background: var(--gray-400);
}

/* Avatar Group */
.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -0.75rem;
    border: 3px solid white;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* =====================================================
   Order Card
   ===================================================== */
.order-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border-left: 4px solid var(--primary-500);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
}

.order-card.status-created {
    border-left-color: var(--gray-400);
}

.order-card.status-paid {
    border-left-color: var(--primary-500);
}

.order-card.status-inprogress {
    border-left-color: var(--warning-500);
}

.order-card.status-completed {
    border-left-color: var(--success-500);
}

.order-card.status-cancelled {
    border-left-color: var(--danger-500);
}

.order-card.status-dispute {
    border-left-color: var(--gray-800);
}

/* Complex Order Card */
.order-card-complex {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.order-card-complex:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.order-card-complex.status-created {
    border-top: 3px solid var(--warning-500);
}

.order-card-complex.status-paid {
    border-top: 3px solid var(--primary-500);
}

.order-card-complex.status-inprogress {
    border-top: 3px solid var(--warning-500);
}

.order-card-complex.status-completedconfirmed {
    border-top: 3px solid var(--success-500);
}

.order-card-complex.status-cancelled {
    border-top: 3px solid var(--danger-500);
}

.order-card-complex.status-dispute {
    border-top: 3px solid var(--gray-800);
}

/* Pulse animation for unread messages */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Progress bar animation */
.progress {
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    border-radius: var(--radius-full);
}

/* Order card responsive */
@media (max-width: 768px) {
    .order-card-complex .col-md-3 {
        max-height: 180px;
    }

    .order-card-complex .col-md-3 img,
    .order-card-complex .col-md-3>div {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    }
}

/* =====================================================
   Chat UI
   ===================================================== */
.chat-container {
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.chat-header {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 70%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    position: relative;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.sent {
    background: var(--gradient-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message.received {
    background: white;
    box-shadow: var(--shadow);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message .message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.chat-input {
    background: white;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input .form-control {
    border-radius: var(--radius-full);
}

/* =====================================================
   Notification Item
   ===================================================== */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: var(--primary-50);
}

.notification-item .notif-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item .notif-content {
    flex: 1;
}

.notification-item .notif-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.notification-item .notif-text {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.notification-item .notif-time {
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* =====================================================
   Transaction Item
   ===================================================== */
.transaction-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background: var(--gray-50);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: var(--radius);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.transaction-icon.income {
    background: var(--success-100);
    color: var(--success-600);
}

.transaction-icon.expense {
    background: var(--danger-100);
    color: var(--danger-600);
}

.transaction-icon.pending {
    background: var(--warning-100);
    color: var(--warning-600);
}

/* =====================================================
   Empty State
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state .icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state .icon-wrapper i,
.empty-state .icon {
    font-size: 3rem;
    color: var(--gray-400);
}

.empty-state h4 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto;
}

/* =====================================================
   Loading States
   ===================================================== */
.loading-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.brand-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.brand-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-inner {
    width: 40%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* =====================================================
   Rating Stars
   ===================================================== */
.rating-stars {
    display: inline-flex;
    gap: 0.125rem;
    color: #fbbf24;
}

.rating-stars i {
    font-size: 1rem;
}

.rating-stars i.empty {
    color: var(--gray-300);
}

/* =====================================================
   Provider Dashboard
   ===================================================== */
.dashboard-header {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.dashboard-header h2 {
    color: white;
}

.quick-action-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quick-action-card .action-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.quick-action-card:hover .action-icon {
    transform: scale(1.1);
}

/* =====================================================
   Dropdown Menu - Modern
   ===================================================== */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    animation: dropdownIn 0.2s ease-out;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: var(--radius);
    padding: 0.625rem 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-item i {
    font-size: 1.1rem;
    color: var(--gray-500);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* =====================================================
   Modal - Modern Style
   ===================================================== */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-100);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
}

/* =====================================================
   Tabs - Modern Style
   ===================================================== */
.nav-tabs-modern {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    display: inline-flex;
    gap: 0.25rem;
}

.nav-tabs-modern .nav-link {
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-tabs-modern .nav-link:hover {
    color: var(--gray-800);
}

.nav-tabs-modern .nav-link.active {
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow);
}

.nav-tabs {
    border-bottom: 2px solid var(--gray-200);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-600);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-500);
    background: transparent;
}

.nav-pills .nav-link {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    color: var(--gray-600);
}

.nav-pills .nav-link.active {
    background: var(--gradient-primary);
}

/* =====================================================
   Progress Bar
   ===================================================== */
.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

/* =====================================================
   Tables
   ===================================================== */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-700);
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* =====================================================
   Alerts
   ===================================================== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-success {
    background: var(--success-50);
    color: var(--success-600);
}

.alert-warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.alert-danger {
    background: var(--danger-50);
    color: var(--danger-600);
}

.alert-info {
    background: var(--primary-50);
    color: var(--primary-600);
}

/* =====================================================
   Tooltips
   ===================================================== */
.tooltip-inner {
    background: var(--gray-800);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

/* =====================================================
   Animations
   ===================================================== */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page-enter {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   Utility Classes
   ===================================================== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.bg-gradient-danger {
    background: var(--gradient-danger) !important;
}

.text-primary {
    color: var(--primary-600) !important;
}

.text-primary-600 {
    color: var(--primary-600) !important;
}

.text-success-600 {
    color: var(--success-600) !important;
}

.text-warning-600 {
    color: var(--warning-600) !important;
}

.text-danger-600 {
    color: var(--danger-600) !important;
}

.bg-primary-50 {
    background: var(--primary-50) !important;
}

.bg-primary-100 {
    background: var(--primary-100) !important;
}

.bg-success-50 {
    background: var(--success-50) !important;
}

.bg-success-100 {
    background: var(--success-100) !important;
}

.bg-warning-50 {
    background: var(--warning-50) !important;
}

.bg-warning-100 {
    background: var(--warning-100) !important;
}

.bg-danger-50 {
    background: var(--danger-50) !important;
}

.bg-danger-100 {
    background: var(--danger-100) !important;
}

.shadow-glow {
    box-shadow: var(--shadow-glow) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.rounded-2xl {
    border-radius: var(--radius-2xl) !important;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-search {
        flex-direction: column;
    }

    .main-content {
        padding-top: 70px;
    }

    .chat-message {
        max-width: 85%;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-card .icon-wrapper,
    .category-card .icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .btn-fab {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* =====================================================
   Form Validation
   ===================================================== */
.valid.modified:not([type=checkbox]) {
    border-color: var(--success-500);
}

.invalid {
    border-color: var(--danger-500) !important;
}

.validation-message {
    color: var(--danger-600);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

code {
    color: #c02d76;
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {

    .navbar,
    .btn-fab,
    .chat-input {
        display: none !important;
    }

    .main-content {
        padding-top: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }
}