:root {
    --primary: #0081c2;
    --primary-dark: #005f91;
    --secondary: #64748b;
    --success: #10b981;
    --info: #0ea5e9;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --body-bg: #f3f6ff;
    --card-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --border-radius-lg: 1.25rem;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sidebar-logo img + .company-name-text {
    display: none !important;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--body-bg);
    color: var(--dark);
    font-family: var(--font-family-sans-serif);
    -webkit-font-smoothing: antialiased;
}

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

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

/* Sidebar Navigation */
.nav-sidebar .nav-item {
    margin-bottom: 0.5rem;
    list-style: none;
}

.nav-sidebar .nav-item .nav-link {
    color: var(--secondary);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-sidebar .nav-item .nav-link:hover {
    background: rgba(0, 129, 194, 0.05);
    color: var(--primary);
}

.nav-sidebar .nav-item .nav-link.active {
    background: rgba(0, 129, 194, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    border-radius: 0 0.75rem 0.75rem 0;
    margin-left: -1rem;
    padding-left: calc(1rem - 4px);
}

.sidebar-logo {
    padding: 0 1rem 3rem;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
    text-decoration: none;
}

.sidebar-logo img {
    height: 32px;
}

/* Cards & Widgets */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
    background-color: var(--card-bg);
}

.card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card .card-header h5 {
    margin: 0;
    font-weight: 700;
}

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

/* Order Steps & List Groups */
.list-group {
    border: none !important;
    background: transparent !important;
}

.list-group-item {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 1rem !important;
    margin-bottom: 0.75rem !important;
    padding: 1.25rem 1.75rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

.list-group-item:first-child, .list-group-item:last-child {
    border-radius: 1rem !important;
}

.list-group-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow) !important;
    border-color: var(--primary) !important;
}

.list-group-item.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.list-group-item.active .badge {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

/* Profile Header Card */
.card-profile-header {
    background: var(--primary);
    color: white;
}

.card-profile-header .profile-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-profile-header .btn-outline-light {
    border-width: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* User Profile Pill */
.user-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-pill img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-pill .user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Sidebar Balance Box */
.sidebar-balance {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: auto;
}

.sidebar-balance .label {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.sidebar-balance .amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.svg-icon {
    height: 20px;
    width: 20px;
    fill: currentColor;
}

/* Buttons */
.btn {
    border-radius: 0.75rem;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--secondary);
    font-weight: 400;
}

/* Page Headers */
h1, h2, .h1, .h2 {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

#wrapper section[role="main"] > h1,
#wrapper section[role="main"] > h2 {
    font-size: 1.75rem;
    margin-top: 0.5rem;
}

/* Form & Input refinements for premium feel */
.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 129, 194, 0.1);
}

/* List Groups (Used in Order page) */
.list-group {
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    border: none;
    background: #fff;
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item i, .list-group-item svg {
    font-size: 1.25rem;
    color: var(--primary);
    opacity: 0.7;
}

.list-group-item:hover {
    background-color: rgba(0, 129, 194, 0.05);
    color: var(--primary);
}

.list-group-item.active {
    background-color: rgba(0, 129, 194, 0.1);
    color: var(--primary);
    font-weight: 700;
}

/* Steps / Progress in Order Page */
.order-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Badges */
.badge {
    border-radius: 0.5rem;
    padding: 0.5em 0.8em;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.bg-info { background-color: rgba(14, 165, 233, 0.1) !important; color: #0ea5e9 !important; }
.bg-success { background-color: rgba(16, 185, 129, 0.1) !important; color: #10b981 !important; }
.bg-primary { background-color: rgba(0, 129, 194, 0.1) !important; color: var(--primary) !important; }

/* Product Selection specific */
.product-category-list .list-group-item {
    cursor: pointer;
}

/* Utilities */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.ls-wide { letter-spacing: 0.05em; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
