/*
	Staff Theme (Dark Neon Glass)
	- Primary: #1E1E1E (background)
	- Secondary: #00E5FF (accents)
	- Tertiary: #A259FF (support)
	- Effects: glass blur, semi-transparent panels, soft borders, neon glows
*/

:root {
    --color-bg: #1E1E1E;
    --color-text: #EAEAEA;
    --color-muted: #BDBDBD;
    --color-accent: #00E5FF;
    --color-support: #A259FF;
    /* Aliases to match provided spec */
    --secondary: var(--color-accent);
    --tertiary: var(--color-support);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-cyan: 0 0 12px rgba(0, 229, 255, 0.5);
    --shadow-purple: 0 0 12px rgba(162, 89, 255, 0.45);
    --radius: 10px;
    --radius-sm: 6px;
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 16px;
    --space-4: 24px;
}

/* Typography */
/* If allowed, you can include Poppins:  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap'); */
body {
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
}

/* Utility text colors */
.text-danger {
    color: #ef4444 !important;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: var(--space-3) 0 var(--space-2);
    font-weight: 600;
}

p,
small,
label {
    margin: var(--space-1) 0;
}

a {
    color: var(--color-support);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-shadow: var(--shadow-purple);
}

/* Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

header a {
    color: var(--color-text);
    margin-right: var(--space-2);
}

header a:hover {
    color: var(--color-accent);
    text-shadow: var(--shadow-cyan);
}

header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.container,
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3);
}

/* Glass panels */
.block,
.panel,
.card,
.table-wrap,
.form-wrap {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
}

.service-order-table-bg {
    background: rgba(30, 41, 59, 0.7);
    /* glassy dark blue, matches neon glass theme */
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

th,
td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-2);
    text-align: left;
    color: var(--color-text);
}

thead th {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    color: var(--color-text);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-cyan);
    background: rgba(0, 0, 0, 0.3);
}

label {
    color: var(--color-muted);
    display: inline-block;
    margin-bottom: var(--space-1);
}

small {
    color: var(--color-muted);
}

/* Buttons */
button,
input[type="submit"],
input[type="button"] {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(162, 89, 255, 0.15));
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

/* Themed button system (Bootstrap-like API) */
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    display: inline-block;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(162, 89, 255, 0.15));
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
    background-size: 200% 100%;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-cyan), var(--shadow-purple);
    transform: translateY(-2px) scale(1.02);
}

/* Solid variants */
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-dark {
    background-image: linear-gradient(45deg, rgba(0, 229, 255, 0.35) 50%, rgba(162, 89, 255, 0.35) 50%);
    background-position: 100% 0;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-dark:hover {
    background-position: 0 0;
}

/* Outline variants */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    background: transparent;
}

/* Size helpers */
.btn-sm {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
}

/* Light text variant for dark backgrounds */
.btn-outline-light,
.btn-light {
    color: var(--color-text);
    border-color: var(--glass-border);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-cyan), var(--shadow-purple);
    transform: translateY(-1px);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0);
}

/* Simple grid */
.row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.col {
    flex: 1 1 0;
    min-width: 260px;
}

/* Status chips (plain text fallback, subtle glow) */
.chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
}

.chip--ok {
    color: var(--color-text);
    box-shadow: var(--shadow-cyan);
}

.chip--warn {
    color: var(--color-text);
    box-shadow: var(--shadow-purple);
}

/* Links group */
.actions a {
    margin-right: var(--space-2);
    color: var(--color-accent);
}

.actions a:hover {
    text-shadow: var(--shadow-cyan);
}

/* === Futuristic Topbar Styles === */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(30, 30, 30, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    /* extra right padding so avatar doesn't clip */
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* entrance animation */
    transform: translateY(-16px);
    opacity: 0;
    animation: topbarSlideIn 420ms ease-out forwards;
    /* subtle glow pulse */
    animation-delay: 60ms;
}

.topbar .logo {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary);
    letter-spacing: 1px;
    /* neon pulse for logo */
    animation: neonPulse 2.8s ease-in-out infinite;
}

.topbar .logo a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
}

.topbar .logo a:first-child {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary);
}

.topbar .logo a:not(:first-child) {
    color: #ccc;
    font-weight: 500;
    font-size: 1rem;
    text-shadow: none;
}

.topbar .logo a:not(:first-child):hover {
    color: var(--tertiary);
    text-shadow: 0 0 8px var(--tertiary);
}

.topbar nav {
    display: flex;
    gap: 2rem;
}

.topbar nav a {
    color: #ccc;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.topbar nav a:hover {
    color: var(--tertiary);
    text-shadow: 0 0 8px var(--tertiary);
}

/* Responsive Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: auto;
    margin-left: 2rem;
}

.nav-links a {
    color: #ccc;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--tertiary);
    text-shadow: 0 0 8px var(--tertiary);
}

/* Mobile navigation items in dropdown - hidden on desktop */
.mobile-nav-item {
    display: none;
}

.mobile-nav-divider {
    display: none;
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 1rem;
    }

    /* Hide navigation links in logo section on mobile */
    .topbar .logo a:not(:first-child) {
        display: none;
    }

    /* Hide main navigation on mobile */
    .nav-links {
        display: none;
    }

    /* Show mobile navigation items in dropdown */
    .mobile-nav-item {
        display: block;
    }

    .mobile-nav-divider {
        display: block;
    }

    /* Adjust dropdown width for mobile nav items */
    #userDropdown {
        min-width: 220px;
        right: 0;
    }
}

/* animated cyan bottom accent */
.topbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--tertiary), transparent);
    filter: blur(0.5px);
    opacity: 0.9;
    background-size: 200% 100%;
    animation: barSweep 6s linear infinite;
}

@keyframes topbarSlideIn {
    0% {
        transform: translateY(-16px);
        opacity: 0;
    }

    60% {
        transform: translateY(2px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes neonPulse {

    0%,
    100% {
        text-shadow: 0 0 6px var(--secondary), 0 0 0 var(--tertiary);
    }

    50% {
        text-shadow: 0 0 12px var(--secondary), 0 0 10px var(--tertiary);
    }
}

@keyframes barSweep {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Profile avatar and dropdown */
#avatarBtn {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#avatarBtn:hover {
    box-shadow: var(--shadow-cyan);
    border-color: var(--secondary);
}

.profile-menu {
    position: relative;
    margin-right: 20px;
}

#userDropdown {
    position: absolute;
    right: 8px;
    top: calc(100% + 10px);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

#userDropdown.show {
    display: block;
}

#userDropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--color-text);
    text-decoration: none;
}

#userDropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--secondary);
    text-shadow: var(--shadow-cyan);
}



/* === Staff Login Page === */
/* Background slideshow behind everything */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.login-bg__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) contrast(1.05) brightness(0.8);
    opacity: 0;
    animation: slideCycle 21s infinite;
}

.login-bg__slide:nth-child(1) {
    background-image: url('../images/536434096_1545977199724589_544478404274609106_n.jpg');
    animation-delay: 0s;
}

.login-bg__slide:nth-child(2) {
    background-image: url('../images/541101496_1899887893906388_7301817520816129691_n.jpg');
    animation-delay: 7s;
}

.login-bg__slide:nth-child(3) {
    background-image: url('../images/542406371_3655462837922020_5486512678434411126_n.jpg');
    animation-delay: 14s;
}

.login-bg__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 100% at 50% 0%, rgba(0, 229, 255, 0.12), rgba(162, 89, 255, 0.10) 60%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

@keyframes slideCycle {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    6% {
        opacity: 1;
        transform: scale(1);
    }

    28% {
        opacity: 1;
        transform: scale(1.02);
    }

    33% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Ensure dashboard content stays above bg effects */
.dashboard-foreground {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Falling bubbles */
.login-bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.login-bubbles span {
    position: absolute;
    top: -80px;
    display: block;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35) 60%, rgba(255, 255, 255, 0) 61%);
    border-radius: 50%;
    filter: blur(0.2px);
    opacity: 0.8;
    animation: bubbleFall 10s linear infinite;
}

.login-bubbles span:nth-child(odd) {
    background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.95), rgba(0, 229, 255, 0.35) 60%, rgba(0, 229, 255, 0) 61%);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.login-bubbles span:nth-child(3n) {
    background: radial-gradient(circle at 30% 30%, rgba(162, 89, 255, 0.95), rgba(162, 89, 255, 0.35) 60%, rgba(162, 89, 255, 0) 61%);
    box-shadow: 0 0 10px rgba(162, 89, 255, 0.4);
}

/* randomize positions/sizes/delays */
.login-bubbles span:nth-child(1) {
    left: 5%;
    width: 10px;
    height: 10px;
    animation-duration: 9s;
    animation-delay: 0s;
}

.login-bubbles span:nth-child(2) {
    left: 15%;
    width: 14px;
    height: 14px;
    animation-duration: 11s;
    animation-delay: 1s;
}

.login-bubbles span:nth-child(3) {
    left: 25%;
    width: 8px;
    height: 8px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.login-bubbles span:nth-child(4) {
    left: 35%;
    width: 18px;
    height: 18px;
    animation-duration: 12s;
    animation-delay: 0.5s;
}

.login-bubbles span:nth-child(5) {
    left: 45%;
    width: 12px;
    height: 12px;
    animation-duration: 8.5s;
    animation-delay: 1.5s;
}

.login-bubbles span:nth-child(6) {
    left: 55%;
    width: 16px;
    height: 16px;
    animation-duration: 13s;
    animation-delay: 0.2s;
}

.login-bubbles span:nth-child(7) {
    left: 65%;
    width: 9px;
    height: 9px;
    animation-duration: 9.5s;
    animation-delay: 2.2s;
}

.login-bubbles span:nth-child(8) {
    left: 75%;
    width: 20px;
    height: 20px;
    animation-duration: 12.5s;
    animation-delay: 1.1s;
}

.login-bubbles span:nth-child(9) {
    left: 85%;
    width: 11px;
    height: 11px;
    animation-duration: 10.5s;
    animation-delay: 2.6s;
}

.login-bubbles span:nth-child(10) {
    left: 95%;
    width: 15px;
    height: 15px;
    animation-duration: 14s;
    animation-delay: 0.7s;
}

.login-bubbles span:nth-child(11) {
    left: 12%;
    width: 7px;
    height: 7px;
    animation-duration: 9.2s;
    animation-delay: 3s;
}

.login-bubbles span:nth-child(12) {
    left: 28%;
    width: 13px;
    height: 13px;
    animation-duration: 10.8s;
    animation-delay: 1.8s;
}

.login-bubbles span:nth-child(13) {
    left: 52%;
    width: 9px;
    height: 9px;
    animation-duration: 11.6s;
    animation-delay: 2.8s;
}

.login-bubbles span:nth-child(14) {
    left: 68%;
    width: 17px;
    height: 17px;
    animation-duration: 12.2s;
    animation-delay: 0.9s;
}

.login-bubbles span:nth-child(15) {
    left: 88%;
    width: 10px;
    height: 10px;
    animation-duration: 10.2s;
    animation-delay: 2.4s;
}

@keyframes bubbleFall {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.85;
    }

    50% {
        transform: translateY(50vh) translateX(10px) scale(1.05);
    }

    100% {
        transform: translateY(110vh) translateX(-10px) scale(0.95);
        opacity: 0;
    }
}

/* Floating Background Elements */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 229, 255, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Main Container */
.login-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.login-header {
    background: radial-gradient(60% 100% at 50% 0%, rgba(0, 229, 255, 0.25), rgba(162, 89, 255, 0.15) 60%, transparent 100%);
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.logo-container {
    position: relative;
    z-index: 2;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: logoPulse 2s ease-in-out infinite;
}

.login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.login-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    font-weight: 400;
}

/* Body */
.login-body {
    padding: 2.5rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.25);
    color: var(--color-text);
    position: relative;
}

.form-control::placeholder {
    color: var(--color-muted);
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-2px);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    z-index: 3;
    pointer-events: none;
}

.form-group:focus-within .input-icon {
    color: var(--color-accent);
}

/* Card hover subtle lift */
.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* Focus helper states driven by JS adding .focused */
.form-group.focused label {
    color: var(--secondary);
}

.form-group.focused .form-control {
    border-color: var(--secondary);
    box-shadow: var(--shadow-cyan);
}

/* Validation states (Bootstrap-like API compatibility) */
.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.invalid-feedback {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

.form-control.is-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

.valid-feedback {
    color: #86efac;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.form-control.is-valid~.valid-feedback {
    display: block;
}

/* Helper text under inputs */
.helper-text {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Button text alignment */
.btn-login .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Footer icons spacing */
.footer-links a i {
    margin-right: 6px;
}

/* === Dashboard Content === */
.dashboard-container {
    padding-top: 90px;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin: var(--space-3) 0 var(--space-4);
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan), var(--shadow-purple);
}

.stat-card .stat-label {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.meta-chips {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.panel.table-wrap {
    padding: var(--space-4);
}

.table-wrap {
    overflow: hidden;
    margin-top: var(--space-3);
}

.table-wrap table {
    width: 100%;
}

/* Compact themed table */
.table-compact thead th {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    padding: 12px 14px;
    border-bottom: 1px solid var(--glass-border);
}

.table-compact tbody td {
    padding: 10px 14px;
    vertical-align: middle;
}

.table-compact tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table-compact tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Customer cell formatting */
.customer-cell {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.customer-name {
    color: var(--color-text);
    font-weight: 600;
}

.customer-phone {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Themed status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid var(--glass-border);
}

.status-primary {
    color: #cfeafe;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.08));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.status-success {
    color: #c9f7e1;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.10));
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.status-warning {
    color: #fde68a;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.10));
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.status-danger {
    color: #fecaca;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.10));
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.status-secondary {
    color: #d1d5db;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.22), rgba(107, 114, 128, 0.10));
    box-shadow: 0 0 10px rgba(107, 114, 128, 0.25);
}

/* Smaller action buttons area */
.actions-sm a {
    margin-right: 8px;
}

/* Button Styles */
.btn-login {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.9) 50%, rgba(162, 89, 255, 0.9) 50%);
    border: 1px solid var(--glass-border);
    color: var(--color-text);
    font-weight: 600;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    background-size: 200% 100%;
    background-position: 100% 0;
}

.btn-login:hover {
    background-position: 0 0;
    background-image: linear-gradient(45deg, var(--tertiary) 0%, var(--secondary) 100%);
    border-color: var(--secondary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-cyan), var(--shadow-purple);
    color: var(--color-bg);
    animation: pulse 2s infinite;
}

/* Ensure child text and icons follow hover color */
.btn-login:hover .btn-text,
.btn-login:hover i {
    color: var(--color-bg);
}

.btn-login:active {
    transform: translateY(-1px) scale(1.01);
    animation: bounce 0.6s ease-in-out;
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-login.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-login .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Ripple for generic buttons */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

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

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #fca5a5;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: rgba(22, 163, 74, 0.08);
    color: #86efac;
    border-left: 4px solid #16a34a;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

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

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Footer */
.login-footer {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
    text-shadow: var(--shadow-cyan);
}

.back-to-home {
    margin-top: 1rem;
}

.back-to-home a {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-home a:hover {
    color: var(--tertiary);
    transform: translateY(-2px);
    text-shadow: var(--shadow-purple);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

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

    .login-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .login-body {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 1.5rem 1rem 1rem;
    }

    .login-body {
        padding: 1.5rem 1rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-logo {
        width: 60px;
        height: 60px;
    }
}

/* Filters Row - uniform sizing and responsive alignment */
.filters-row {
    padding: var(--space-3);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.filters-row .form-label {
    margin-bottom: 6px;
}

.filters-row .form-control,
.filters-row .form-select {
    height: 42px;
    padding: 8px 12px;
    font-size: 0.95rem;
}

.filters-row .btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filters-row .btn-col {
    display: flex;
    align-items: flex-end;
}

.filters-row button {
    width: 100%;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* When there are fewer controls, allow graceful auto-fit */
@media (min-width: 577px) {
    .filters-row {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .filters-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .filters-row {
        grid-template-columns: 1fr;
    }

    .filters-row .col-12 {
        width: 100%;
    }

    .filters-row .btn-col {
        align-items: stretch;
    }
}

.center-panel {
    text-align: center;
}

.center-panel .row {
    justify-content: center;
    align-items: center;
}

.center-panel .col {
    flex: 0 1 420px;
}

.profile-panel {
    margin-bottom: var(--space-4);
}

.profile-panel .row {
    margin-top: var(--space-2);
}

.profile-panel label {
    margin-bottom: 6px;
}

.profile-panel button {
    margin-top: var(--space-2);
}

/* Profile forms - normalize control sizes */
.form-wrap input[type="text"],
.form-wrap input[type="email"],
.form-wrap input[type="password"],
.form-wrap input[type="file"],
.form-wrap select,
.form-wrap textarea {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-wrap textarea {
    height: auto;
    min-height: 100px;
    line-height: 1.4;
    padding: 10px 12px;
}

.form-wrap button[type="submit"],
.form-wrap button,
.form-wrap .btn {
    height: 44px;
    padding: 10px 16px;
    font-size: 0.95rem;
}

/* Improve spacing between columns and rows in forms */
.form-wrap .row {
    gap: var(--space-3);
}

.form-wrap .col {
    min-width: 260px;
}

/* Responsive fix for dashboard columns */
@media (max-width: 992px) {
    .row {
        flex-direction: column;
        gap: var(--space-3);
    }

    .col,
    .col-lg-9,
    .col-lg-3 {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
    }

    /* Ensure right column content has proper spacing on mobile */
    .col-lg-3 .panel {
        margin-bottom: var(--space-3);
    }
}

@media (max-width: 576px) {

    .container,
    .dashboard-container {
        padding: 8px;
    }

    .card {
        padding: 10px;
        margin-bottom: 16px;
    }

    .card-header,
    .card-body {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* Fix header overlap for staff pages */
.dashboard-foreground {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .dashboard-foreground {
        padding-top: 90px;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .panel {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .table-compact {
        font-size: 0.85rem;
    }

    .customer-cell {
        min-width: 120px;
    }

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

    .customer-phone {
        font-size: 0.8rem;
        color: var(--color-muted);
    }

    .actions-sm a {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-foreground {
        padding-top: 100px;
    }

    .dashboard-container {
        padding: 0.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .table-compact th,
    .table-compact td {
        padding: 0.5rem 0.25rem;
    }

    .customer-cell {
        min-width: 100px;
    }
}

/* Ensure content doesn't get cut off */
.dashboard-container {
    min-height: calc(100vh - 80px);
}

/* Optimize spacing for rescue request view */
.rescue-request-view .row {
    margin: 0;
    gap: var(--space-4);
}

.rescue-request-view .panel {
    margin-bottom: var(--space-3);
}

.rescue-request-view .profile-panel {
    margin-bottom: var(--space-3);
}

/* Reduce table cell width for better space utilization */
.rescue-request-view .table td:first-child {
    width: 180px;
    min-width: 180px;
}

/* Optimize map container */
.rescue-request-view #view-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

/* Optimize action buttons spacing */
.rescue-request-view .action-buttons {
    margin-top: 15px;
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.rescue-request-view .action-buttons .btn {
    flex: 1;
    min-width: 140px;
}

/* Optimize section headers */
.rescue-request-view .section-header {
    margin-bottom: var(--space-2);
}

.rescue-request-view .section-title {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Responsive table scrolling */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .table-responsive table {
        min-width: 600px;
        border-radius: 0;
    }

    .table-compact th,
    .table-compact td {
        white-space: nowrap;
        padding: 0.75rem 0.5rem;
    }

    .customer-cell {
        min-width: 150px;
    }

    .actions-sm {
        min-width: 80px;
    }

    .actions-sm button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: 60px;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .chip {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .table-responsive {
        margin: 0 -0.5rem;
    }

    .table-responsive table {
        min-width: 500px;
    }

    .table-compact th,
    .table-compact td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }

    .customer-cell {
        min-width: 120px;
    }

    .customer-name {
        font-size: 0.8rem;
    }

    .customer-phone {
        font-size: 0.7rem;
    }
}

/* === Delivery View Page Styles === */

/* Timeline Styling */
.rescue-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}

/* Timeline for rescue request view */
.timeline {
    position: relative;
    padding: 0;
    margin: 0;
}

.timeline-item {
    position: relative;
    padding: 15px 0 15px 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 15px;
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-bg);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.3);
}

.timeline-item.completed::before {
    background: var(--color-support);
    box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.3);
}

.timeline-item.current::before {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.timeline-description {
    color: var(--color-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.timeline-time {
    color: var(--color-muted);
    font-size: 0.75rem;
    font-style: italic;
}

/* Interested Shops Styling */
.interested-shops {
    margin-top: 10px;
}

.shop-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.shop-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.shop-info {
    margin-bottom: 10px;
}

.shop-info label {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: block;
}

.shop-info div {
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.shop-pricing {
    text-align: right;
}

.shop-pricing label {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: block;
}

.shop-pricing .fs-5 {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #10b981;
}

.shop-pricing div {
    color: var(--color-text);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* Shop Selection Styles */
.shop-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.shop-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
}

.shop-option.selected {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.shop-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60px;
}

.shop-radio {
    display: none;
}

.radio-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s ease;
}

.shop-radio:checked+.radio-label .radio-custom {
    border-color: var(--color-accent);
    background: rgba(0, 229, 255, 0.1);
}

.shop-radio:checked+.radio-label .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.shop-radio:checked~.shop-option {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--color-accent);
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-top: 5px;
    font-style: italic;
}

.shop-selection-actions {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-selection-actions .btn {
    min-width: 150px;
    font-weight: 600;
}

.shop-selection-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    z-index: 1;
}

.timeline-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #bfc9d1;
    text-align: center;
    line-height: 40px;
    margin-bottom: 10px;
    border: 3px solid rgba(24, 28, 39, 0.98);
    position: relative;
    z-index: 2;
}

.timeline-step-icon.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.timeline-step-icon.active.bg-danger {
    background-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.timeline-step-icon.active.bg-delivery {
    background-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.timeline-step-content {
    text-align: center;
    max-width: 120px;
}

.timeline-step-content h6 {
    color: #fff !important;
    font-size: 0.875rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.timeline-step-content p {
    color: #bfc9d1 !important;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.2;
}

.timeline-step-content p.small {
    color: #bfc9d1 !important;
    font-size: 0.7rem;
}

/* Delivery View Card Styles */
.delivery-card {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #f8fafc !important;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delivery-card-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-align: left;
    text-transform: uppercase;
}

.delivery-card-body {
    color: #EFE6D9;
    padding: 1.5rem;
}

/* Hero Background */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    z-index: 0;
    /* was -2; ensure children can receive interactions */
    overflow-y: auto;
    /* allow scrolling inside fixed background wrapper */
    -webkit-overflow-scrolling: touch;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, rgba(147, 51, 234, 0.1) 50%, transparent 70%);
    z-index: -1;
}

/* Info Items */
.info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-label {
    font-weight: 600;
    color: #3b82f6;
    min-width: 120px;
}

.price-highlight {
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Order Summary */
.order-summary-card {
    background: rgba(24, 28, 39, 0.98);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    margin-top: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(24, 28, 39, 0.25);
}

.summary-header {
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.summary-header h6 {
    color: #3b82f6;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.summary-body {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #e2e8f0;
}

.summary-value {
    font-weight: 600;
    color: #f8fafc;
}

/* Product/Service Items */
.product-item-card,
.service-item-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.product-item-card:hover,
.service-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-info,
.service-info {
    flex: 1;
}

.product-name,
.service-name {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description,
.service-description {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-meta,
.service-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-price,
.service-price {
    text-align: right;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.unit-price,
.service-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

/* Location Details */
.location-details {
    padding: 1rem 0;
}

.location-address {
    font-size: 1.1rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #dc2626;
    color: #f8fafc;
}

.shop-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.shop-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.shop-contact {
    display: flex;
    align-items: center;
    color: #e0e6ed;
    font-size: 0.9rem;
}

.shop-address {
    color: #bfc9d1;
    font-weight: 500;
}

/* Modal Styling */
.modal {
    z-index: 10050 !important;
}

.modal-backdrop {
    z-index: 10049 !important;
}

.modal-content {
    border: none !important;
    box-shadow: 0 1rem 3rem rgba(24, 28, 39, 0.5) !important;
    z-index: 10051 !important;
    background: rgba(24, 28, 39, 0.98) !important;
    color: #EFE6D9 !important;
}

.modal-dialog {
    z-index: 10052 !important;
    margin-top: 2rem !important;
}

.modal.show {
    display: block !important;
}

.modal-header {
    background: rgba(24, 28, 39, 0.98) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body {
    background: rgba(24, 28, 39, 0.98) !important;
    color: #EFE6D9 !important;
}

.modal-title {
    color: #fff !important;
}

/* Evidence Photos */
.evidence-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.evidence-photo:hover {
    transform: scale(1.05);
}

.photo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 100px;
    height: 100px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Delivery Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-indicator.status-assigned {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-indicator.status-accepted {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-indicator.status-out-for-delivery {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes highlight {
    0% {
        background-color: rgba(255, 243, 205, 0.5);
    }

    50% {
        background-color: rgba(255, 243, 205, 1);
    }

    100% {
        background-color: rgba(255, 243, 205, 0);
    }
}

.highlight-animation {
    animation: highlight 2s ease-in-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.3s;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Responsive adjustments for delivery view */
@media (max-width: 768px) {
    .delivery-card-header {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .timeline-step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-step-icon {
        width: 32px;
        height: 32px;
        line-height: 32px;
    }

    .product-item-card,
    .service-item-card {
        padding: 0.75rem;
    }

    .product-meta,
    .service-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .price-breakdown {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .unit-price,
    .service-total {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .rescue-timeline {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-line {
        display: none;
    }

    .timeline-step {
        width: 100%;
    }

    .delivery-card {
        border-radius: 12px;
    }

    .delivery-card-header {
        border-radius: 12px 12px 0 0;
    }
}

/* Services page-specific table background reset */
.services-page .table,
.services-page .table-compact,
.services-page .table-compact th,
.services-page .table-compact td,
.services-page .table th,
.services-page .table td {
    background: transparent !important;
    color: #fff !important;
}

/* Service Orders page column sizing */
.service-orders-page .service-orders-table thead th:nth-child(1),
.service-orders-page .service-orders-table tbody td:nth-child(1) {
    /* Date */
    width: 14%;
    white-space: nowrap;
}

.service-orders-page .service-orders-table thead th:nth-child(2),
.service-orders-page .service-orders-table tbody td:nth-child(2) {
    /* Customer */
    width: 28%;
}

.service-orders-page .service-orders-table thead th:nth-child(3),
.service-orders-page .service-orders-table tbody td:nth-child(3) {
    /* Staff */
    width: 20%;
}

.service-orders-page .service-orders-table thead th:nth-child(4),
.service-orders-page .service-orders-table tbody td:nth-child(4) {
    /* Amount */
    width: 12%;
    text-align: right;
    white-space: nowrap;
}

.service-orders-page .service-orders-table thead th:nth-child(5),
.service-orders-page .service-orders-table tbody td:nth-child(5) {
    /* Payment */
    width: 13%;
    white-space: nowrap;
}

.service-orders-page .service-orders-table thead th:nth-child(6),
.service-orders-page .service-orders-table tbody td:nth-child(6) {
    /* Status */
    width: 13%;
    white-space: nowrap;
}

@media (max-width: 768px) {

    .service-orders-page .service-orders-table thead th,
    .service-orders-page .service-orders-table tbody td {
        width: auto;
        white-space: nowrap;
    }
}

/* Labeled customer cell layout */
.customer-cell.customer-cell--labeled {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.customer-cell.customer-cell--labeled .customer-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 6px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    min-width: 70px;
}

.customer-cell.customer-cell--labeled .customer-values {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .customer-cell.customer-cell--labeled .customer-labels {
        font-size: 0.85em;
        min-width: 60px;
    }
}

/* Row-wise labeled customer cell */
.customer-cell.customer-cell--rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-cell.customer-cell--rows .customer-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-cell.customer-cell--rows .customer-label {
    font-weight: 600;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    min-width: 64px;
    text-align: right;
}

.customer-cell.customer-cell--rows .customer-name {
    font-weight: 600;
}

.customer-cell.customer-cell--rows .customer-phone {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .customer-cell.customer-cell--rows .customer-label {
        min-width: 56px;
    }
}

/* Enforce white table text across staff pages */
.table,
.table-compact,
.table th,
.table td,
.table-compact th,
.table-compact td {
    color: #fff !important;
}

/* Ensure dashboard page buttons match profile page buttons exactly */
.dashboard-page button,
.dashboard-page .btn {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(162, 89, 255, 0.15)) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--color-text) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    background-size: 200% 100% !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.dashboard-page button:hover,
.dashboard-page .btn:hover {
    border-color: var(--color-accent) !important;
    box-shadow: var(--shadow-cyan), var(--shadow-purple) !important;
    transform: translateY(-2px) scale(1.02) !important;
    text-decoration: none !important;
}

/* Ensure assignment page buttons match profile page buttons exactly */
.assignments-page .btn,
.assignments-page .btn-outline-primary {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(162, 89, 255, 0.15)) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--color-text) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    background-size: 200% 100% !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.assignments-page .btn-outline-primary {
    background: transparent !important;
}

.assignments-page .btn:hover,
.assignments-page .btn-outline-primary:hover {
    border-color: var(--color-accent) !important;
    box-shadow: var(--shadow-cyan), var(--shadow-purple) !important;
    transform: translateY(-2px) scale(1.02) !important;
    text-decoration: none !important;
}

/* === Staff Profile Page Styles === */
.profile-header {
    background: linear-gradient(135deg, #00b4d8 0%, #000 100%) !important;
    color: #fff !important;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 53, 102, 0.2);
    border: 1px solid rgba(0, 180, 216, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.25rem;
    color: #3b82f6;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 53, 102, 0.2);
    border: 1px solid rgba(0, 180, 216, 0.2);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #00b4d8 0%, #000 100%);
    border-bottom: 1px solid rgba(0, 180, 216, 0.3);
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-align: left;
    padding: 1.5rem;
    text-transform: uppercase;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dashboard-card .card-body {
    color: #fff;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
}

.nav-pills .nav-link.active {
    background-color: #3b82f6;
    color: #fff !important;
}

.nav-pills .nav-link {
    color: #3b82f6;
}

.form-text {
    color: #bfc9d1;
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Profile page specific form styling */
.profile-page .form-control,
.profile-page .form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(0, 180, 216, 0.3) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.profile-page .form-control:focus,
.profile-page .form-select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #00b4d8 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.25) !important;
    color: #fff !important;
}

.profile-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400 !important;
}

.profile-page .form-control:hover {
    border-color: rgba(0, 180, 216, 0.5) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Profile page alerts */
.profile-page .alert {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 1rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

/* Responsive adjustments for profile page */
@media (max-width: 768px) {
    .profile-header {
        margin: 0 1rem 2rem 1rem;
        padding: 1.5rem 1rem;
    }

    .dashboard-card .card-header {
        font-size: 1.2rem;
        padding: 1rem;
    }

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

/* Route info styling for maps */
.route-info {
    background-color: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.route-duration {
    font-size: 10px;
    opacity: 0.9;
}

.table-no-bg,
.table-no-bg th,
.table-no-bg td {
    background: transparent !important;
    box-shadow: none !important;
}

/* Client rescue view utilities */
.timeline-item-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.map-container {
    height: 400px;
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.marker-dot {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.marker-dot--customer {
    background-color: #3b82f6;
}

.marker-dot--shop {
    background-color: #10b981;
}

.popup-card {
    min-width: 200px;
}

.popup-title {
    margin: 0 0 10px 0;
    color: #3b82f6;
}

.popup-title--shop {
    color: #10b981;
}

.popup-note {
    font-size: 12px;
    color: #666;
}

.img-fixed-200 {
    height: 200px;
    object-fit: cover;
}

.img-max-300 {
    max-height: 300px;
}

.col-select-50 {
    width: 50px;
}

.top-right-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
}

.btn-outline-primary:hover {
    text-decoration: none !important;
}

/* Do not block interactions for the main background wrapper */
.hero-overlay,
.floating-elements {
    pointer-events: none;
}

.dashboard-foreground {
    pointer-events: auto;
}

/* Layout helpers for headers */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.header-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Shop action buttons: stack vertically (column) instead of row */
.product-actions-cell,
.service-actions-cell,
.actions-sm {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
}

.product-actions-cell button,
.service-actions-cell button,
.actions-sm button,
.product-actions-cell .btn,
.service-actions-cell .btn,
.actions-sm .btn {
    width: 100%;
}

/* Utility: standard table actions column width */
.table-actions-col {
    width: 260px;
    white-space: nowrap;
}