/* Root Variables - shadcn/ui inspired colors */
:root {
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 60px;
    --header-height: 64px;

    /* shadcn/ui color palette */
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;

    --landing-primary: #14b8a6;
    --landing-secondary: #0d9488;
    --landing-accent: #14b8a6;
    --landing-accent-foreground: #ffffff;
    --landing-border: #e2e8f0;
    --landing-input: #e2e8f0;
    --landing-ring: #14b8a6;
    --landing-radius: 0.5rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

/* Admin Wrapper */
.admin-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navigation Bar */
.top-navbar {
    height: var(--header-height);
    background: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: hsl(var(--card) / 0.95);
}

.navbar-container {
    height: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar-brand i {
    font-size: 1.5rem;
    color: hsl(var(--primary));
}

.navbar-brand h3 {
    color: hsl(var(--foreground));
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
}

.navbar-menu {
    flex: 1;
    display: flex;
}

.navbar-menu ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.15s ease;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.nav-link i {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.15s ease;
}

.nav-link:hover i {
    color: hsl(var(--foreground));
}

.nav-link.active {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.nav-link.active i {
    color: hsl(var(--primary));
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: hsl(var(--background));
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
}

.user-profile .dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 200px;
    padding: 0.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 12px hsl(var(--foreground) / 0.1);
    display: none;
    z-index: 1000;
}

.user-profile .dropdown-menu.show {
    display: block;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.user-profile-btn:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary));
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary) / 0.8) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.user-name {
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
}

.user-profile-btn i.fa-chevron-down {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    transition: transform 0.15s ease;
}

.user-profile-btn[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    min-width: 200px;
    padding: 0.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 4px 12px hsl(var(--foreground) / 0.1);
    margin-top: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.dropdown-item i {
    width: 16px;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background: hsl(var(--border));
    border: none;
}

.form-inline {
    margin: 0;
    padding: 0;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 1.5rem;
    background: transparent;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

/* Footer */
.content-footer {
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    padding: 1rem 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.footer-content a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-content a:hover {
    color: hsl(var(--muted-foreground));
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }

    .navbar-brand h3 {
        font-size: 1rem;
    }

    .user-name {
        display: none;
    }

    .navbar-container {
        padding: 0 1rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 1rem;
        max-width: 100%;
    }

    .navbar-brand i {
        font-size: 1.25rem;
    }

    .navbar-container {
        padding: 0 0.75rem;
        gap: 1rem;
        max-width: 100%;
    }
}

/* Bootstrap Override */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem hsl(var(--background)), 0 0 0 0.25rem hsl(var(--ring));
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: hsl(var(--muted-foreground));
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Card Styles for Dashboard */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
    font-weight: 600;
    padding: 1rem 1.25rem;
    color: hsl(var(--foreground));
}

.card-body {
    padding: 1.25rem;
}

/* Dashboard Stats Cards */
.card.bg-primary {
    background: hsl(var(--primary)) !important;
    border-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
}

.card.bg-success {
    background: 142 76% 36% !important;
    border-color: 142 76% 36% !important;
    color: hsl(var(--primary-foreground)) !important;
}

.card.bg-warning {
    background: 38 92% 50% !important;
    border-color: 38 92% 50% !important;
    color: hsl(var(--primary-foreground)) !important;
}

.card.bg-info {
    background: 199 89% 48% !important;
    border-color: 199 89% 48% !important;
    color: hsl(var(--primary-foreground)) !important;
}

/* Table Styles */
.table {
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.table thead {
    border-color: hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
}

.table tbody tr {
    border-color: hsl(var(--border));
}

.table-hover tbody tr:hover {
    background: hsl(var(--muted) / 0.5);
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: calc(var(--radius) - 2px);
}

.badge.bg-success {
    background: hsl(142 76% 36%) !important;
    color: white !important;
}

.badge.bg-warning {
    background: hsl(38 92% 50%) !important;
    color: white !important;
}

.badge.bg-primary {
    background: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
}

/* Button Styles */
.btn {
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
}

.btn-primary {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    border-color: hsl(var(--primary) / 0.9);
}

.btn-success {
    background: hsl(142 76% 36%);
    border-color: hsl(142 76% 36%);
}

.btn-success:hover {
    background: hsl(142 76% 30%);
    border-color: hsl(142 76% 30%);
}

.btn-info {
    background: hsl(199 89% 48%);
    border-color: hsl(199 89% 48%);
}

.btn-info:hover {
    background: hsl(199 89% 42%);
    border-color: hsl(199 89% 42%);
}

.btn-warning {
    background: hsl(38 92% 50%);
    border-color: hsl(38 92% 50%);
}

.btn-warning:hover {
    background: hsl(38 92% 44%);
    border-color: hsl(38 92% 44%);
}

/* ==================== TASKS PAGE STYLES ==================== */

/* Tasks Page Container */
.tasks-page {
    margin: 0 auto;
    max-width: 100%;
    overflow-x: hidden;
}

/* Tasks Header */
.tasks-header {
    margin-bottom: 1.75rem;
}

.tasks-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.tasks-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin: 0;
}

/* Toolbar */
.tasks-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    flex-wrap: wrap;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search */
.search-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-wrapper {
    position: relative;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.search-input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 1px hsl(var(--ring));
}

.search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.btn-search {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    height: 100%;
    min-height: 2.25rem;
}

.btn-search:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-search i {
    font-size: 0.875rem;
}

.btn-search span {
    font-size: 0.875rem;
}

/* Filter Group */
.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    appearance: none;
}

.filter-select:hover {
    background-color: hsl(var(--accent));
}

.filter-select:focus {
    outline: none;
    border-color: hsl(var(--ring));
}

.filter-select[type="date"] {
    min-width: 140px;
}

.filter-select[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.filter-select[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Buttons */
.btn-secondary {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: hsl(var(--accent));
}

.btn-secondary i.fa-chevron-down {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.btn-primary {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--primary));
    border-radius: var(--radius);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Actions inline container */
.actions-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex-wrap: nowrap;
    padding: 0.25rem;
}

/* Table Container */
.table-container {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    overflow: visible;
    margin-bottom: 1.5rem;
    position: static;
    max-width: 100%;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    position: static;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.5rem;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    overflow: visible;
    min-width: 600px;
    position: static;
    table-layout: auto;
}

/* Specific column widths for UsedWashTickets table */
#ticketsTable {
    table-layout: fixed;
}

#ticketsTable th:nth-child(1),
#ticketsTable td:nth-child(1) {
    width: 9%;
    min-width: 90px;
}

#ticketsTable th:nth-child(2),
#ticketsTable td:nth-child(2) {
    width: 8%;
    min-width: 80px;
}

#ticketsTable th:nth-child(3),
#ticketsTable td:nth-child(3) {
    width: 11%;
    min-width: 110px;
}

#ticketsTable th:nth-child(4),
#ticketsTable td:nth-child(4) {
    width: 9%;
    min-width: 90px;
}

#ticketsTable th:nth-child(5),
#ticketsTable td:nth-child(5) {
    width: 9%;
    min-width: 90px;
}

#ticketsTable th:nth-child(6),
#ticketsTable td:nth-child(6) {
    width: 9%;
    min-width: 90px;
}

#ticketsTable th:nth-child(7),
#ticketsTable td:nth-child(7) {
    width: 6%;
    min-width: 60px;
    text-align: center;
}

#ticketsTable th:nth-child(8),
#ticketsTable td:nth-child(8) {
    width: 7%;
    min-width: 70px;
}

#ticketsTable th:nth-child(9),
#ticketsTable td:nth-child(9) {
    width: 7%;
    min-width: 70px;
}

#ticketsTable th:nth-child(10),
#ticketsTable td:nth-child(10) {
    width: 9%;
    min-width: 90px;
}

#ticketsTable th:nth-child(11),
#ticketsTable td:nth-child(11) {
    width: 5%;
    min-width: 50px;
}

.data-table thead {
    background: hsl(var(--muted) / 0.5);
    border-bottom: 1px solid hsl(var(--border));
}

.data-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.th-content {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sort-icon {
    font-size: 0.65rem;
    opacity: 0.5;
}

.data-table th.sortable:hover .sort-icon {
    opacity: 1;
}

.checkbox-cell {
    width: 40px;
}

.table-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid hsl(var(--border));
    border-radius: 3px;
    cursor: pointer;
}

.data-table tbody tr {
    border-bottom: 1px solid hsl(var(--border));
    transition: background 0.15s ease;
    position: static;
}

.data-table tbody tr:hover {
    background: hsl(var(--muted) / 0.5);
}

.data-table td {
    padding: 0.75rem 0.5rem;
    color: hsl(var(--foreground));
    white-space: nowrap;
    position: static;
    overflow: hidden;
    text-overflow: ellipsis;
    /* max-width: 0; */
}

/* Action column should not clip buttons */
.data-table td.action-column {
    overflow: visible;
    max-width: none;
    white-space: nowrap;
    padding: 0.75rem 0.5rem;
}

/* Allow wrapping for specific columns in tickets table */
#ticketsTable td:nth-child(3),
#ticketsTable td:nth-child(6) {
    white-space: normal;
    word-break: break-word;
    max-width: none;
}

.cell-content {
    display: flex;
    align-items: center;
}

.policy-number {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.font-medium {
    font-weight: 500;
}

.text-center {
    text-align: center;
    display: block;
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

/* Sticky Columns */
.sticky-col {
    position: sticky;
    left: 0;
    background: hsl(var(--card));
    z-index: 10;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.sticky-col-2 {
    position: sticky;
    left: 40px;
    background: hsl(var(--card));
    z-index: 10;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.sticky-col-actions {
    position: sticky;
    right: 0;
    background: hsl(var(--card));
    z-index: 10;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.05);
    width: 80px;
    min-width: 80px;
    text-align: center;
    overflow: visible;
    max-width: none;
}

.data-table thead th.sticky-col,
.data-table thead th.sticky-col-2,
.data-table thead th.sticky-col-actions {
    background: hsl(var(--muted) / 0.5);
}

.data-table tbody tr:hover .sticky-col,
.data-table tbody tr:hover .sticky-col-2,
.data-table tbody tr:hover .sticky-col-actions {
    background: hsl(var(--muted) / 0.5);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    border: none;
}

.export-dropdown {
    position: relative;
}

.export-dropdown .dropdown-toggle {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    min-width: 180px;
    background: hsl(var(--popover));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    display: none;
    padding: 0.25rem;
}

.dropdown-menu.show {
    display: block;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: background 0.15s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: hsl(var(--accent));
}

.dropdown-item i {
    width: 16px;
    font-size: 0.875rem;
}

.dropdown-item.text-destructive {
    color: hsl(var(--destructive));
}

.dropdown-divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 0.25rem 0;
}

/* Table Footer */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    font-size: 0.875rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.footer-left {
    display: flex;
    align-items: center;
}

.selected-count {
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pagination-info {
    display: none;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-info {
    display: none;
}

.pagination-buttons {
    display: flex;
    gap: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .tasks-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-wrapper {
        min-width: 100%;
    }

    .table-container {
        overflow: hidden;
        max-width: 100%;
    }

    .table-scroll-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .data-table {
        min-width: 600px;
    }

    .table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

/* Portal dropdown adjustments */
.dropdown-menu.portal-open {
    position: fixed !important;
    z-index: 9999 !important; /* above everything */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.dropdown-menu.portal-open.opens-upward::after,
.dropdown-menu.portal-open.opens-upward::before {
    transform: rotate(180deg);
}

/* ===============================================
   Error Pages (404, 401)
   =============================================== */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--background));
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.error-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.error-icon-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.error-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    animation: error-icon-float 3s ease-in-out infinite;
    position: relative;
}

.error-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, 
        hsl(var(--primary)) 0%, 
        hsl(var(--accent)) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.error-icon-404 {
    background: linear-gradient(135deg, 
        hsl(240 100% 97%) 0%, 
        hsl(240 70% 95%) 100%);
    color: hsl(240 5.9% 10%);
}

.error-icon-401 {
    background: linear-gradient(135deg, 
        hsl(0 100% 97%) 0%, 
        hsl(0 70% 95%) 100%);
    color: hsl(0 84.2% 60.2%);
}

.error-icon-500 {
    background: linear-gradient(135deg, 
        hsl(0 100% 97%) 0%, 
        hsl(0 70% 95%) 100%);
    color: hsl(0 84.2% 60.2%);
}

@keyframes error-icon-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.error-content {
    animation: error-content-fade-in 0.6s ease-out;
}

@keyframes error-content-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem 0;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, 
        hsl(var(--foreground)) 0%, 
        hsl(var(--muted-foreground)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0 0 1rem 0;
    letter-spacing: -0.025em;
}

.error-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0 0 2rem 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-actions .btn-primary,
.error-actions .btn-secondary,
.error-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}

.error-actions .btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.error-actions .btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.2);
}

.error-actions .btn-secondary,
.error-actions button {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.error-actions .btn-secondary:hover,
.error-actions button:hover {
    background: hsl(var(--secondary) / 0.8);
    transform: translateY(-1px);
}

.error-help {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.error-help-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 1rem 0;
}

.error-suggestions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.suggestion-link:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--primary));
    color: hsl(var(--accent-foreground));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.1);
}

.suggestion-link i {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
}

/* Info cards for 401 page */
.error-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.15s ease;
}

.info-card:hover {
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.1);
    transform: translateY(-2px);
}

.info-card i {
    font-size: 2rem;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

.info-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 0.5rem 0;
}

.info-card p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    line-height: 1.4;
}

/* Background pattern */
.error-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.error-pattern {
    position: absolute;
    inset: -50%;
    background-image: 
        radial-gradient(circle at 20% 30%, hsl(var(--primary) / 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, hsl(var(--accent) / 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, hsl(var(--primary) / 0.03) 0%, transparent 50%);
    animation: error-pattern-drift 20s ease-in-out infinite;
}

@keyframes error-pattern-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(10px, -10px) rotate(1deg);
    }
    66% {
        transform: translate(-10px, 10px) rotate(-1deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-description {
        font-size: 0.875rem;
    }

    .error-icon {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
    }

    .error-actions .btn-primary,
    .error-actions .btn-secondary,
    .error-actions button {
        width: 100%;
        justify-content: center;
    }

    .error-suggestions {
        flex-direction: column;
    }

    .suggestion-link {
        width: 100%;
        justify-content: center;
    }

    .error-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   Landing Page Styles
   =============================================== */

.landing-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('../images/main-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.landing-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.landing-nav {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.landing-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.landing-nav-link:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    color: #14b8a6;
}

.landing-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.landing-nav-button {
    border: none;
    cursor: pointer;
    margin: 0;
}

.landing-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
}

.landing-logo {
    margin-top: 4rem;
    margin-bottom: 2rem;
    z-index: 3;
}

.landing-logo img {
    height: 145px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.landing-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 3;
}

.landing-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.landing-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    outline: none;
}

.landing-input::placeholder {
    color: #999;
    font-size: 1rem;
}

.landing-input:focus {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.landing-input.error {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: errorShake 0.3s ease-in-out;
}

.landing-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    transform: translateY(0);
    border-color: #dc2626 !important;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.landing-select {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.landing-select:focus {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.landing-select option {
    padding: 0.5rem;
    background: white;
    color: #333;
}

.landing-select option:first-child {
    color: #999;
}

.landing-select.error {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: errorShake 0.3s ease-in-out;
}

.landing-select.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    transform: translateY(0);
    border-color: #dc2626 !important;
}

.landing-button {
    width: 100%;
    max-width: 400px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: #14b8a6;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    transition: all 0.3s ease;
    text-transform: none;
}

.landing-button:hover {
    background: #0d9488;
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.5);
    transform: translateY(-2px);
}

.landing-button:active {
    transform: translateY(0);
}

.landing-button:disabled,
.landing-button[disabled] {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

.landing-button:disabled:hover,
.landing-button[disabled]:hover {
    background: #14b8a6 !important;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4) !important;
    transform: none !important;
}

.landing-back-button {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
}

.landing-back-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.landing-back-button:active {
    transform: translateY(0);
}

.landing-back-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.landing-error-message {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(8px);
}

.landing-error-message .error-icon {
    margin: 0 auto 1.5rem auto;
    display: flex;
    justify-content: center;
    color: #ef4444;
}

.landing-error-message .error-icon svg {
    width: 48px;
    height: 48px;
}

.landing-error-message .error-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.landing-error-message .error-description {
    font-size: 1rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

.landing-footer {
    margin-top: auto;
    text-align: center;
    color: white;
    z-index: 3;
    padding-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.landing-tagline {
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: flex;
    justify-content: center;
}

.landing-tagline svg {
    width: 200px;
    height: auto;
    max-width: 100%;
}

.landing-contact {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
    text-align: center;
}
.landing-contact a {
    color: white;
    text-decoration: none;
}
.landing-contact a:hover {
    color: #14b8a6;
    text-decoration: underline;
}

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
    .landing-nav {
        top: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .landing-nav-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .landing-nav-link svg {
        width: 14px;
        height: 14px;
    }

    .landing-container {
        padding: 1.5rem 1rem;
    }

    .landing-logo {
        margin-top: 1rem;
    }

    .landing-logo img {
        height: 100px;
    }
    
    .landing-tagline svg {
        width: 150px;
    }

    .landing-form-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    .landing-input,
    .landing-select,
    .landing-button {
        max-width: 100%;
        font-size: 0.9375rem;
    }

    .landing-tagline {
        font-size: 1.25rem;
    }

    .landing-contact {
        font-size: 0.8125rem;
    }

    .landing-page {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .landing-tagline {
        font-size: 1.125rem;
    }

    .landing-contact {
        font-size: 0.75rem;
    }

    .landing-input,
    .landing-select,
    .landing-button {
        padding: 0.875rem 1rem;
    }
}

/* ===============================================
   Wash Info Modal & OTP Form Styles
   =============================================== */

.wash-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.wash-modal-content {
    background: #0f766e;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wash-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.wash-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.wash-info-header {
    margin-bottom: 1.5rem;
}

.wash-info-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    text-align: center;
    padding-right: 30px;
}

.wash-sms-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0.75rem 0 0 0;
    text-align: center;
}

.wash-request-code-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.wash-request-code-btn:hover:not(:disabled) {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wash-request-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* OTP Form Styles */
.otp-header {
    margin-bottom: 2rem;
    text-align: center;
}

.otp-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.otp-sms-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
}

.otp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.otp-input-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.otp-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.otp-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.otp-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: #14b8a6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.otp-submit-btn:hover:not(:disabled) {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.otp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.otp-resend-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.otp-resend-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.otp-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error Toast */
.error-toast,
.success-toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    font-size: 0.9375rem;
    font-weight: 500;
    max-width: 90%;
    text-align: center;
    animation: toastSlideIn 0.3s ease-out;
}

.success-toast {
    background: #059669;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive adjustments for modals */
@media (max-width: 768px) {
    .wash-modal-content {
        padding: 1.5rem;
        max-width: 100%;
    }

    .wash-info-text {
        font-size: 1rem;
    }

    .otp-input {
        width: 42px;
        height: 50px;
        font-size: 1.25rem;
    }

    .otp-input-container {
        gap: 0.5rem;
    }

    .otp-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .wash-modal-content {
        padding: 1.25rem;
    }

    .wash-info-text {
        font-size: 0.9375rem;
    }

    .otp-input {
        width: 38px;
        height: 46px;
        font-size: 1.125rem;
    }

    .otp-input-container {
        gap: 0.375rem;
    }

    .error-toast,
    .success-toast {
        top: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ===============================================
   Modern Form Styles
   =============================================== */

.form-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-control-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.form-control-modern:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.form-control-modern::placeholder {
    color: hsl(var(--muted-foreground));
    opacity: 0.6;
}

.form-control-modern.error {
    border-color: hsl(var(--destructive));
}

.form-control-modern.error:focus {
    border-color: hsl(var(--destructive));
    box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.1);
}

.validation-error {
    display: block;
    color: hsl(var(--destructive));
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

.form-help-text {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.375rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: 2rem;
}

/* Responsive Form Adjustments */
@media (max-width: 768px) {
    .form-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-footer .btn-primary,
    .form-footer .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.25rem;
        max-width: 100%;
    }

    .form-control-modern {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* Improved Dropdown Menu Positioning */
.data-table .dropdown {
    position: relative;
}

.data-table .dropdown-menu {
    position: fixed;
    min-width: 180px;
    background: hsl(var(--popover));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    display: none;
    padding: 0.25rem;
}

.data-table .dropdown-menu.show {
    display: block;
}

/* Alert styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
}

.alert-danger {
    background: hsl(var(--destructive) / 0.1);
    border-color: hsl(var(--destructive) / 0.2);
    color: hsl(var(--destructive));
}

.alert-success {
    background: hsl(142 76% 36% / 0.1);
    border-color: hsl(142 76% 36% / 0.2);
    color: hsl(142 76% 30%);
}

.alert-info {
    background: hsl(199 89% 48% / 0.1);
    border-color: hsl(199 89% 48% / 0.2);
    color: hsl(199 89% 40%);
}

/* ===============================================
   Modal Styles
   =============================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    backdrop-filter: blur(2px);
    animation: modalOverlayFadeIn 0.2s ease-out;
}

@keyframes modalOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-dialog {
    max-width: 500px;
    width: 100%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title i {
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-destructive {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--destructive));
    border-radius: var(--radius);
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-destructive:hover {
    background: hsl(var(--destructive) / 0.9);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }

    .modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .modal-footer .btn-primary,
    .modal-footer .btn-secondary,
    .modal-footer .btn-destructive {
        width: 100%;
        justify-content: center;
    }
}
