/* Customer dashboard — built on top of Bootstrap 5 cards/badges */
body {
    font-family: "Poppins", sans-serif;
    background: #f4f6fb;
    color: #1c2030;
    margin: 0;
}

.ud-wrap {
    
    margin-left: 20px;
    margin-right: 20px;
}

/* shell: sidebar + topbar */
#dbWrapper {
    min-height: 100vh;
}
.ud-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    border-right: 1px solid #eceff6;
    display: flex;
    flex-direction: column;
    z-index: 1030;
    transition: margin-left 0.2s ease-in-out;
}
.ud-main {
    flex: 1 1 auto;
    margin-left: 250px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.2s ease-in-out;
}

.ud-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border-bottom: 1px solid #eceff6;
    text-decoration: none;
    flex-shrink: 0;
}
.ud-sidebar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(30, 40, 90, 0.12);
}
.ud-sidebar-brand strong {
    display: block;
    color: #1c2030;
    font-size: 15px;
    font-weight: 700;
}
.ud-sidebar-brand span {
    color: #6b7385;
    font-size: 11px;
}

.ud-sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 12px;
}
.ud-sidebar-heading {
    color: #6b7385;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 10px 8px;
}
.ud-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5164;
    font-weight: 500;
    font-size: 14px;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 2px 0;
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}
.ud-nav-link i {
    width: 18px;
    text-align: center;
    color: #8a90a2;
    transition: color 0.15s;
}
.ud-nav-link:hover {
    background: #f1f4fd;
    color: #1c2030;
}
.ud-nav-link:hover i {
    color: #1a5cf0;
}
.ud-nav-link.active {
    background: #e4ecff;
    color: #1a5cf0;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #1a5cf0;
}
.ud-nav-link.active i {
    color: #1a5cf0;
}

.ud-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #eceff6;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}
.ud-sidebar-user:hover {
    background: #f1f4fd;
}
.ud-sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5cf0, #6a8dff);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}
.ud-sidebar-who {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}
.ud-sidebar-who b {
    display: block;
    color: #1c2030;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ud-sidebar-who span {
    color: #6b7385;
    font-size: 11px;
}
.ud-sidebar-user > i {
    color: #b0b4c0;
    font-size: 12px;
}

.ud-topbar {
    height: 64px;
    z-index: 1020;
}
.ud-topbar .container-fluid {
    display: flex;
    align-items: center;
    height: 100%;
}
#sidebarToggle {
    color: #6b7385;
}
#sidebarToggle:hover {
    color: #1a5cf0;
}
.ud-topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5cf0, #6a8dff);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.ud-user-menu {
    min-width: 240px;
    padding: 0;
    margin-top: 10px !important;
    border: 1px solid #eceff6;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(60, 70, 130, 0.16) !important;
    overflow: hidden;
}
.ud-user-menu-head {
    padding: 14px 16px;
    border-bottom: 1px solid #eceff6;
    text-align: center;
}
.ud-user-menu-head b {
    color: #1c2030;
    font-size: 14px;
}
.ud-user-menu-head small {
    font-size: 12px;
}
.ud-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 14px;
    color: #1c2030;
    transition: background 0.15s, color 0.15s;
}
.ud-user-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6b7385;
    transition: color 0.15s;
}
.ud-user-menu .dropdown-item:hover,
.ud-user-menu .dropdown-item:focus {
    background: #f1f4fd;
    color: #1a5cf0;
}
.ud-user-menu .dropdown-item:hover i,
.ud-user-menu .dropdown-item:focus i {
    color: #1a5cf0;
}
.ud-user-menu .dropdown-item.text-danger:hover,
.ud-user-menu .dropdown-item.text-danger:focus {
    background: #fdecee;
    color: #dc3545 !important;
}
.ud-user-menu .dropdown-item.text-danger:hover i,
.ud-user-menu .dropdown-item.text-danger:focus i {
    color: #dc3545;
}
.ud-user-menu .dropdown-divider {
    margin: 4px 0;
}

.ud-footer {
    color: #6b7385;
    border-top: 1px solid #eceff6;
    background: #fff;
}
.ud-footer a {
    color: #1a5cf0;
    font-weight: 600;
    text-decoration: none;
}

#dbWrapper.ud-sidebar-collapsed .ud-sidebar {
    margin-left: -250px;
}
#dbWrapper.ud-sidebar-collapsed .ud-main {
    margin-left: 0;
}

@media (max-width: 991.98px) {
    .ud-sidebar {
        margin-left: -250px;
    }
    .ud-main {
        margin-left: 0;
    }
    #dbWrapper.ud-sidebar-collapsed .ud-sidebar {
        margin-left: 0;
        box-shadow: 8px 0 24px rgba(20, 25, 50, 0.25);
    }
}

/* page header breadcrumb */
.breadcrumb {
    font-size: 13px;
    margin: 0;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb-item a {
    color: #6b7385;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}
.breadcrumb-item a:hover {
    color: #1a5cf0;
    background: #f1f4fd;
}
.breadcrumb-item.active {
    color: #1a5cf0;
    background: #e4ecff;
    padding: 5px 12px;
    border-radius: 999px;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #c3c8d6;
    padding: 0 4px;
}

/* stat cards */
.stat-card {
    border-radius: 14px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(30, 40, 90, 0.12) !important;
}
.stat-card .card-body {
    padding: 20px 18px 14px;
}
.stat-card .card-footer {
    border-top: 1px solid #eceff6;
    padding: 12px 18px;
}
.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7385;
}
.stat-num {
    font-size: 28px;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* panel cards */
.card {
    border-radius: 14px;
}
.card-header {
    border-radius: 14px 14px 0 0 !important;
    padding: 18px 22px;
}
.card-header h6 i {
    font-size: 15px;
}

/* tables */
.ud-table thead th {
    background: #f8f9fc;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #6b7385;
    padding: 12px 22px;
    border-bottom: 1px solid #e9ecf4;
    white-space: nowrap;
}
.ud-table tbody td {
    padding: 12px 22px;
    vertical-align: middle;
}
.ud-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #3b4152;
    font-size: 13px;
}
.ud-ellipsis {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ud-link {
    color: #1a5cf0;
    font-weight: 600;
    text-decoration: none;
}
.ud-link:hover {
    text-decoration: underline;
}
.ud-empty {
    text-align: center;
    color: #6b7385;
    padding: 40px 0 !important;
}
.ud-empty i {
    font-size: 26px;
    color: #c7cbd8;
    margin-bottom: 8px;
    display: inline-block;
}
.ud-pdf {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ud-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eceff6;
}
.ud-search {
    width: 100%;
    max-width: 320px;
}

/* order status badges */
.ud-status-created,
.ud-status-success {
    background: #dff1e6;
    color: #198754;
}
.ud-status-cancelled {
    background: #fbe3e6;
    color: #dc3545;
}
.ud-status-returned {
    background: #fff3dc;
    color: #b87500;
}

@media (max-width: 575.98px) {
    .stat-card .card-body {
        padding: 16px 14px 10px;
    }
    .stat-num {
        font-size: 22px;
    }
}
