/* ==========================================================================
   PRO DIGITAL SERVICE PLATFORM - SENIOR DESIGN SYSTEM
   Clean, Professional, Trustworthy, Modern, Human-Designed Enterprise UI/UX
   ========================================================================== */

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

:root {
    /* Enterprise Color System */
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-300: #cbd5e1;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50:  #f8fafc;

    --color-brand-600: #2563eb;
    --color-brand-700: #1d4ed8;
    --color-brand-50:  #eff6ff;

    --color-emerald-600: #059669;
    --color-emerald-50:  #ecfdf5;

    --color-amber-600: #d97706;
    --color-amber-50:  #fffbeb;

    --color-rose-600: #dc2626;
    --color-rose-50:  #fef2f2;

    --bg-main: var(--color-slate-50);
    --card-bg: #ffffff;
    --border-subtle: var(--color-slate-200);

    /* Typography & Radius */
    --font-primary: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* Subtle Elevation Shadows (Not AI/Gaudy) */
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--color-slate-800);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-brand-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-brand-700);
}

/* Header & Public Navbar */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-slate-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand-logo i {
    color: var(--color-brand-600);
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-slate-700) !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-brand-600) !important;
}

/* Buttons System */
.btn-primary-custom {
    background-color: var(--color-brand-600);
    color: #ffffff !important;
    border: 1px solid var(--color-brand-600);
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background-color: var(--color-brand-700);
    border-color: var(--color-brand-700);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--color-slate-700) !important;
    border: 1px solid var(--color-slate-300);
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.btn-outline-custom:hover {
    background-color: var(--color-slate-100);
    color: var(--color-slate-900) !important;
    border-color: var(--color-slate-400);
}

/* Public Hero Section */
.hero-section {
    background-color: var(--color-slate-900);
    color: #ffffff;
    padding: 4.5rem 0 4rem;
    border-bottom: 1px solid var(--color-slate-800);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-slate-300);
    margin-bottom: 1.75rem;
    max-width: 620px;
}

/* Service Card */
.service-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    border-color: var(--color-brand-600);
    box-shadow: var(--shadow-hover);
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-brand-50);
    color: var(--color-brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
}

.service-price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-emerald-600);
    margin-top: auto;
    padding-top: 1rem;
}

/* Customer Reviews */
.review-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.35rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.review-stars {
    color: var(--color-amber-600);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* =========================================================
   USER DASHBOARD & SIDEBAR LAYOUT
   ========================================================= */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-main);
}

/* User Sidebar */
.user-sidebar-container {
    width: 250px;
    min-width: 250px;
    background-color: var(--color-slate-900);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1020;
    transition: transform 0.25s ease;
}

.user-sidebar-logo {
    padding: 1.25rem 1.25rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--color-slate-800);
    text-decoration: none;
}

.user-sidebar-logo i {
    color: var(--color-brand-600);
}

.user-sidebar-nav {
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-grow: 1;
    overflow-y: auto;
}

.user-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--color-slate-400);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.user-nav-item:hover {
    color: #ffffff;
    background-color: var(--color-slate-800);
}

.user-nav-item.active {
    background-color: var(--color-brand-600);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.user-nav-item.active i {
    color: #ffffff !important;
}

.user-nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.user-nav-item.logout {
    color: var(--color-rose-600);
    margin-top: auto;
}

.user-nav-item.logout:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
}

/* User Content Area */
.user-main-content {
    margin-left: 250px;
    flex-grow: 1;
    padding: 1.5rem;
    background-color: var(--bg-main);
    min-height: 100vh;
}

.dashboard-top-header {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-subtle);
}

.dashboard-greeting {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin: 0;
}

/* Stat Grid (Clean Enterprise Cards) */
.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.clean-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
}

.clean-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-slate-500);
    margin-bottom: 0.25rem;
}

.clean-stat-number {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-slate-900);
    line-height: 1.1;
}

.clean-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon-purple { background: #f3e8ff; color: #7e22ce; }
.stat-icon-orange { background: var(--color-amber-50); color: var(--color-amber-600); }
.stat-icon-blue   { background: var(--color-brand-50); color: var(--color-brand-600); }
.stat-icon-green  { background: var(--color-emerald-50); color: var(--color-emerald-600); }

/* Containers & Cards */
.dashboard-card-container {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.dashboard-card-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-slate-100);
    margin-bottom: 1rem;
}

.dashboard-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin: 0;
}

/* Tables System */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--color-slate-50);
    color: var(--color-slate-600);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-slate-200);
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.85rem 1rem;
    color: var(--color-slate-800);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--color-slate-100);
    vertical-align: middle;
}

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

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.65em;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-pending { background-color: var(--color-amber-50); color: var(--color-amber-600); border: 1px solid #fde68a; }
.badge-approved { background-color: var(--color-brand-50); color: var(--color-brand-600); border: 1px solid #bfdbfe; }
.badge-processing { background-color: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-completed { background-color: var(--color-emerald-50); color: var(--color-emerald-600); border: 1px solid #a7f3d0; }
.badge-rejected, .badge-cancelled { background-color: var(--color-rose-50); color: var(--color-rose-600); border: 1px solid #fecaca; }

/* Empty State */
.empty-state-box {
    text-align: center;
    padding: 3.5rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--color-slate-300);
    margin-bottom: 0.85rem;
}

.empty-state-text {
    font-size: 0.95rem;
    color: var(--color-slate-500);
    font-weight: 600;
}

/* Form Styling */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-slate-300);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    color: var(--color-slate-900);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-brand-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-slate-700);
    margin-bottom: 0.35rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* =========================================================
   COMPREHENSIVE MOBILE RESPONSIVE SYSTEM
   Supports 320px, 360px, 375px, 390px, 430px, Tablets & Desktops
   ========================================================= */

/* User Header Wallet Badge */
.user-header-wallet-badge {
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: var(--color-slate-900);
    transition: all 0.15s ease;
}

.user-header-wallet-badge:hover {
    background-color: #d1fae5 !important;
    border-color: #6ee7b7 !important;
}

/* User Avatar Circle */
.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-brand-600);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Table Responsive Improvements */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 3px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .user-sidebar-container {
        transform: translateX(-100%);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .user-sidebar-container.active {
        transform: translateX(0);
    }

    .user-main-content {
        margin-left: 0;
        padding: 0.85rem;
    }

    .dashboard-top-header {
        padding: 0.65rem 0.85rem;
        margin-bottom: 1rem;
    }

    .dashboard-greeting {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .dashboard-card-container {
        padding: 1rem;
    }

    /* Prevent mobile input zooming on iOS */
    .form-control, .form-select {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .clean-stat-card {
        padding: 0.85rem 0.75rem;
    }

    .clean-stat-label {
        font-size: 0.78rem;
    }

    .clean-stat-number {
        font-size: 1.35rem;
    }

    .clean-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .user-header-wallet-badge {
        padding: 0.25rem 0.5rem !important;
    }
}

@media (max-width: 360px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-greeting {
        max-width: 110px !important;
    }
}