:root {
    --bg-dark: #0f172a;
    --bg-mid: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(148, 163, 184, 0.22);
    --glass-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
    --text-primary: #f8fafc;
    --text-muted: rgba(248, 250, 252, 0.72);
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-teal: #14b8a6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.sticky-panel {
    position: sticky;
    top: 1rem;
}

.shop-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

.floating-logo {
    animation: floatY 3.2s ease-in-out infinite;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.bg-layer {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.2), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.2), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(45, 212, 191, 0.12), transparent 40%),
        linear-gradient(130deg, #111827, #0f172a 50%, #0b1220);
    z-index: -1;
}

.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--glass-shadow);
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.login-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.login-icon-customer {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
}

.login-icon-admin {
    background: rgba(129, 140, 248, 0.2);
    color: #a5b4fc;
}

.login-icon-super {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
}

.form-control::placeholder {
    color: rgba(237, 243, 255, 0.45);
}

.form-select option {
    background: #1e293b;
    color: #fff;
}

.btn-glow-primary {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-glow-admin {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-glow-super {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    color: #fff;
    font-weight: 600;
}

.register-toggle {
    color: var(--accent-teal);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.register-toggle:hover {
    color: #5eead4;
}

.register-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.register-panel.show {
    max-height: 600px;
    opacity: 1;
    margin-top: 1rem;
}

.portal-card {
    max-width: 520px;
    margin: 0 auto;
}

.portal-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    transition: transform 0.2s, background 0.2s;
}

.portal-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.portal-btn i {
    font-size: 1.25rem;
}

.dashboard-main {
    padding: 1.25rem 0 2rem;
}

.feature-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.feature-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
}

.feature-nav .nav-link i {
    font-size: 1rem;
}

.feature-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.feature-nav .nav-link.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
}

.panel-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    margin-bottom: 1rem;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
}

.chart-wrap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
    align-items: end;
    height: 170px;
    margin-top: 0.6rem;
}

.chart-bar {
    background: linear-gradient(180deg, #34d399, #10b981);
    border-radius: 10px 10px 4px 4px;
    position: relative;
    min-height: 20px;
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.metric-card i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.metric-card .metric-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: rgba(255, 255, 255, 0.12);
}

.table td,
.table th {
    border-color: rgba(255, 255, 255, 0.12);
}

.status-chip {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
}

.status-Pending {
    background: rgba(245, 158, 11, 0.23);
    color: #fcd34d;
}

.status-Washing {
    background: rgba(59, 130, 246, 0.23);
    color: #93c5fd;
}

.status-Drying {
    background: rgba(45, 212, 191, 0.23);
    color: #99f6e4;
}

.status-Folding {
    background: rgba(167, 139, 250, 0.25);
    color: #c4b5fd;
}

.status-Ready-for-Pickup {
    background: rgba(16, 185, 129, 0.23);
    color: #86efac;
}

.status-Out-for-Delivery {
    background: rgba(236, 72, 153, 0.22);
    color: #f9a8d4;
}

.status-Completed {
    background: rgba(34, 197, 94, 0.23);
    color: #86efac;
}

.loyalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 700;
    color: #fcd34d;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
}

.service-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card .price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-teal);
}

.img-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.link-light-custom {
    color: var(--accent-blue);
    text-decoration: none;
}

.link-light-custom:hover {
    color: #7dd3fc;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.back-link:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .feature-nav .nav-link span.label-text {
        display: none;
    }

    .feature-nav .nav-link {
        padding: 0.5rem 0.65rem;
    }

    .navbar .user-badge {
        display: none;
    }
}