:root {
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-blue: #1e293b;
    --light: #f8fafc;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(226, 232, 240, 0.8);
}

body.customer-body {
    font-family: var(--font-sans);
    background-color: #f1f5f9;
    color: var(--dark);
    min-height: 100vh;
}

/* Sidebar navigation */
.customer-sidebar {
    width: 280px;
    background: #0f172a;
    color: #fff;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 4px 0 25px rgba(15, 23, 42, 0.15);
    transition: all 0.3s ease;
}

.customer-sidebar .brand {
    padding: 24px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-sidebar .brand span {
    color: var(--secondary);
}

.customer-sidebar .nav-links {
    padding: 20px 15px;
    list-style: none;
    margin: 0;
}

.customer-sidebar .nav-links li {
    margin-bottom: 8px;
}

.customer-sidebar .nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.customer-sidebar .nav-links a i {
    font-size: 1.15rem;
    width: 28px;
}

.customer-sidebar .nav-links a:hover,
.customer-sidebar .nav-links li.active a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.customer-sidebar .nav-links li.active a {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.customer-sidebar .sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.customer-main {
    margin-left: 280px;
    padding: 40px;
    transition: all 0.3s ease;
}

/* Header */
.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.customer-header h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--dark);
    margin: 0;
}

/* Cards */
.portal-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.portal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.portal-card .card-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
}

.portal-card .card-body {
    padding: 24px;
}

/* Stat Widgets */
.stat-widget {
    padding: 24px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-widget .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.stat-widget.primary .icon-box {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.stat-widget.secondary .icon-box {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.stat-widget .details h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-display);
}

.stat-widget .details p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.875rem;
}

/* Table Style */
.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.table-custom td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--dark);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-custom tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge-custom {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.badge-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Address Card */
.address-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.address-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.05);
}

.address-card.default {
    border-color: var(--primary);
    background: linear-gradient(180deg, #fff 0%, rgba(79, 70, 229, 0.01) 100%);
}

.address-card .card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.address-card .card-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
}

.address-card .actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* Custom form styling */
.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.form-control-custom {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-custom:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background: #f1f5f9;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
    border: none;
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background: #e2e8f0;
    color: var(--dark);
}

/* Navbar for mobile */
.customer-navbar {
    display: none;
    background: #0f172a;
    color: #fff;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1010;
}

.customer-navbar .brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}

.customer-navbar .brand span {
    color: var(--secondary);
}

/* Auth Pages Design */
.auth-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
    padding: 40px;
}

.auth-box .logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-box .logo span {
    color: var(--secondary);
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .customer-sidebar {
        transform: translateX(-100%);
    }
    .customer-sidebar.show {
        transform: translateX(0);
    }
    .customer-main {
        margin-left: 0;
        padding: 24px 15px;
    }
    .customer-navbar {
        display: flex;
    }
}

/* Pagination Premium Styling */
.pagination .page-item .page-link {
    color: var(--primary);
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    transition: all 0.2s ease;
}
.pagination .page-item .page-link:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}
.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    border-color: var(--border-color);
    background-color: #f8fafc;
}
