html, body {
    font-family: Vazirmatn, sans-serif;
}

html[dir='rtl'] table {
    direction: rtl;
}

html[dir='ltr'] table {
    direction: ltr;
}

html[dir='rtl'] input,
html[dir='rtl'] select,
html[dir='rtl'] textarea {
    text-align: right;
}

html[dir='ltr'] input,
html[dir='ltr'] select,
html[dir='ltr'] textarea {
    text-align: left;
}

nav[aria-label] {
    scrollbar-width: thin;
}

nav[aria-label]::-webkit-scrollbar {
    height: 4px;
}

/* Unified page design */
.page-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
}

.page-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.table-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.table-card-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.table-shell {
    width: 100%;
    text-align: right;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

html[dir='ltr'] .table-shell {
    text-align: left;
}

.table-shell thead {
    background-color: #f8fafc;
}

.table-shell th,
.table-shell td {
    padding: 0.75rem 1rem;
}

.table-shell tbody tr {
    border-top: 1px solid #e2e8f0;
}

.metric-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
}

.metric-value {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
}

.btn-primary {
    border-radius: 0.5rem;
    background-color: #4f46e5;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #fff;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.btn-success {
    border-radius: 0.5rem;
    background-color: #059669;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #fff;
}

.btn-success:hover {
    background-color: #047857;
}

.btn-secondary {
    border-radius: 0.5rem;
    background-color: #334155;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #fff;
}

.btn-danger {
    border-radius: 0.5rem;
    background-color: #dc2626;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.empty-state {
    border-radius: 0.75rem;
    border: 1px dashed #e2e8f0;
    background-color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.manage-aside {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 0.75rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

@media (min-width: 768px) {
    .manage-aside {
        position: sticky;
        top: 1.5rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

.manage-aside-title {
    border-bottom: 1px solid #e2e8f0;
    padding: 0 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
}

.manage-aside-nav a {
    display: block;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.manage-aside-nav a:hover {
    background-color: #eef2ff;
    color: #4338ca;
}

.manage-aside-panel {
    margin-top: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #c7d2fe;
    background-color: #f8fafc;
    padding: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.form-field {
    min-width: 0;
}

.form-fieldset {
    margin: 0;
    border: 0;
    padding: 0;
}

.form-legend {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.form-field-row {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manage-aside .form-field-row {
    grid-template-columns: 1fr;
}

.manage-aside .fleet-form .form-field-row:has(.form-field:nth-child(3)) {
    grid-template-columns: 1fr;
}

.fleet-form {
    display: grid;
    gap: 0.75rem;
}

.fleet-form-wide {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .fleet-form-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .fleet-form-wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.fleet-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .fleet-form-wide .fleet-item-actions {
        grid-column: 1 / -1;
    }
}

.filter-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

.bus-filter-row-scroll {
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.bus-filter-row {
    display: grid;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-width: 52rem;
}

.bus-filter-row-3 {
    grid-template-columns: repeat(3, minmax(9rem, 1fr));
}

.bus-filter-row-4 {
    grid-template-columns: repeat(4, minmax(9rem, 1fr));
}

.bus-filter-row-5 {
    grid-template-columns: repeat(5, minmax(9rem, 1fr));
}

.bus-filter-row-6 {
    grid-template-columns: repeat(6, minmax(9rem, 1fr));
}

.bus-filter-row-7 {
    grid-template-columns: repeat(7, minmax(8rem, 1fr));
}

.bus-filter-row-8 {
    grid-template-columns: repeat(8, minmax(8rem, 1fr));
}

.bus-filter-row .form-input {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.bus-filter-row .btn-primary {
    width: 100%;
    white-space: nowrap;
}

.filter-toolbar {
    border-radius: 0.75rem;
    border: 1px solid #e0e7ff;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.875rem 1rem;
    box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.04);
}

.filter-toolbar-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.75rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.125rem;
    scrollbar-width: thin;
}

.filter-toolbar-fields {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.625rem;
    min-width: 0;
}

.filter-toolbar-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 0;
    min-width: 8.5rem;
}

.filter-toolbar-item-wide {
    flex: 1.35 1 0;
    min-width: 10rem;
}

.filter-toolbar-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #64748b;
    white-space: nowrap;
}

.filter-toolbar-input {
    width: 100%;
    min-height: 2.375rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-toolbar-input:hover {
    border-color: #94a3b8;
}

.filter-toolbar-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.15);
}

.filter-toolbar-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.125rem;
}

.btn-filter {
    border-radius: 0.5rem;
    background-color: #4f46e5;
    padding: 0.5625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.btn-filter:hover {
    background-color: #4338ca;
}

.btn-filter-clear {
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-filter-clear:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.table-row-hover:hover {
    background-color: #f8fafc;
}

.table-footer {
    border-top: 1px solid #e2e8f0;
    padding: 0.875rem 1rem;
}

.plate-badge {
    display: inline-block;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    padding: 0.125rem 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    color: #334155;
}

.type-badge {
    display: inline-block;
    border-radius: 9999px;
    background-color: #eef2ff;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4338ca;
}

.status-badge {
    display: inline-block;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge-maintenance {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge-inactive {
    background-color: #f1f5f9;
    color: #475569;
}

.status-badge-scheduled {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-badge-in-progress {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge-completed {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.trip-row-scheduled {
    background-color: #f5f7ff;
}

.trip-row-in-progress {
    background-color: #fffbeb;
}

.trip-row-completed {
    background-color: #f0fdf4;
}

.trip-row-cancelled {
    background-color: #fef2f2;
}

.trip-row-scheduled:hover,
.trip-row-in-progress:hover,
.trip-row-completed:hover,
.trip-row-cancelled:hover {
    filter: brightness(0.98);
}

.filter-row-input {
    flex: 1 1 0;
    min-width: 7rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
}

.filter-row-input-wide {
    flex: 1.4 1 0;
    min-width: 9rem;
}

.filter-row .btn-secondary {
    flex: 0 0 auto;
    white-space: nowrap;
}

.filter-bar-inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.filter-bar-inline .form-input {
    width: auto;
    min-width: 9rem;
    flex: 1 1 auto;
    max-width: 12rem;
}

.filter-bar {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .filter-bar {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.form-field-action {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fleet-item-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.fleet-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.fleet-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.fleet-item-subtitle {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    color: #64748b;
}

.fleet-item-badge {
    border-radius: 9999px;
    background-color: #eef2ff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4338ca;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-input {
    min-width: 6.5rem;
}

.table-input-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 9rem;
}

.table-input-group .table-input {
    min-width: 3.5rem;
    flex: 1 1 0;
}

.table-input-sep {
    color: #94a3b8;
    font-size: 0.75rem;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.trip-status-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.trip-status-btn {
    display: inline-block;
    border: none;
    border-radius: 9999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.trip-status-btn:hover {
    opacity: 0.85;
}

.trip-edit-row {
    background-color: #f8fafc;
}

.trip-edit-row td {
    border-top: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 28rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
}

.app-logo-mark {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.app-logo-image-sm {
    height: 2rem;
    width: 2rem;
}

.app-logo-image-md {
    height: 2.5rem;
    width: 2.5rem;
}

.app-logo-image-lg {
    height: 4rem;
    width: 4rem;
}

.app-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #4338ca;
    line-height: 1.2;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-card .page-title {
    text-align: center;
}

.bus-seat-map-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0 1.5rem;
}

.bus-vehicle {
    position: relative;
    width: min(100%, 17.5rem);
}

.bus-vehicle__mirror {
    position: absolute;
    top: 5.5rem;
    z-index: 2;
    width: 0.55rem;
    height: 1.35rem;
    border-radius: 0.3rem;
    background: linear-gradient(180deg, #64748b 0%, #334155 100%);
    box-shadow: 0 2px 4px rgb(15 23 42 / 0.25);
}

.bus-vehicle__mirror--left {
    left: -0.65rem;
}

.bus-vehicle__mirror--right {
    right: -0.65rem;
}

.bus-vehicle__shell {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 3px solid #64748b;
    border-radius: 3.25rem 3.25rem 1.35rem 1.35rem;
    background: linear-gradient(180deg, #e2e8f0 0%, #f8fafc 12%, #f1f5f9 100%);
    box-shadow:
        0 16px 32px -14px rgb(15 23 42 / 0.45),
        inset 0 0 0 1px rgb(255 255 255 / 0.65);
}

.bus-cockpit {
    padding: 0.65rem 0.85rem 0.5rem;
    background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
    border-bottom: 2px solid #94a3b8;
}

.bus-cockpit__windshield {
    position: relative;
    height: 2.75rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 2px solid #475569;
    border-radius: 2rem 2rem 0.65rem 0.65rem;
    background: linear-gradient(165deg, #7dd3fc 0%, #38bdf8 38%, #0ea5e9 100%);
    box-shadow: inset 0 -6px 12px rgb(14 116 144 / 0.25);
}

.bus-cockpit__glass-shine {
    position: absolute;
    inset: 0.35rem auto auto 0.65rem;
    width: 38%;
    height: 55%;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0) 100%);
}

.bus-cockpit__wiper {
    position: absolute;
    bottom: 0.45rem;
    left: 50%;
    width: 2px;
    height: 1.35rem;
    transform: translateX(-50%) rotate(-18deg);
    transform-origin: bottom center;
    background: #1e293b;
    border-radius: 9999px;
}

.bus-cockpit__dash {
    display: grid;
    grid-template-columns: 1fr 2.25rem;
    align-items: end;
    gap: 0.5rem;
}

.bus-cockpit__driver {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.bus-cockpit__wheel {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    border: 3px solid #334155;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #475569 0 0.2rem, transparent 0.21rem),
        #1e293b;
    box-shadow: inset 0 0 0 1px #64748b;
}

.bus-driver-seat {
    display: block;
    width: 2.35rem;
    height: 2rem;
    border: 2px solid #334155;
    border-radius: 0.45rem 0.45rem 0.3rem 0.3rem;
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
    box-shadow: inset 0 -4px 0 #334155;
}

.bus-driver-seat::before {
    content: '';
    display: block;
    width: 1.85rem;
    height: 0.55rem;
    margin: -0.45rem auto 0;
    border: 2px solid #334155;
    border-bottom: 0;
    border-radius: 0.35rem 0.35rem 0 0;
    background: #64748b;
}

.bus-cockpit__label {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
}

.bus-cockpit__door {
    justify-self: end;
    width: 1.75rem;
    height: 2.75rem;
    border: 2px dashed #94a3b8;
    border-radius: 0.35rem;
    background: repeating-linear-gradient(
        180deg,
        rgb(148 163 184 / 0.15) 0,
        rgb(148 163 184 / 0.15) 0.35rem,
        transparent 0.35rem,
        transparent 0.7rem
    );
}

.bus-cabin {
    display: grid;
    grid-template-columns: 0.65rem 1fr 0.65rem;
    gap: 0;
    padding: 0.65rem 0.35rem 0.5rem;
}

.bus-cabin__wall {
    border-radius: 0.35rem;
    background:
        repeating-linear-gradient(
            180deg,
            #bae6fd 0,
            #bae6fd 1.1rem,
            #e2e8f0 1.1rem,
            #e2e8f0 1.65rem
        );
    box-shadow: inset 0 0 0 1px #94a3b8;
}

.bus-cabin__floor {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.15rem 0.25rem;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.bus-rear {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 1.25rem 0.65rem;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    border-top: 2px solid #94a3b8;
}

.bus-rear__light {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.2rem;
    border: 1px solid #7f1d1d;
    background: radial-gradient(circle at 35% 35%, #fecaca 0%, #ef4444 55%, #991b1b 100%);
    box-shadow: 0 0 6px rgb(239 68 68 / 0.45);
}

.bus-vehicle__wheels {
    position: absolute;
    inset: 5.75rem -0.85rem 2.75rem -0.85rem;
    pointer-events: none;
}

.bus-wheel {
    position: absolute;
    top: 50%;
    width: 1.65rem;
    height: 1.65rem;
    border: 3px solid #334155;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #64748b 0 0.25rem, #1e293b 0.26rem 100%);
    box-shadow: 0 3px 6px rgb(15 23 42 / 0.35);
    transform: translateY(-50%);
}

.bus-wheel--left {
    left: 0;
}

.bus-wheel--right {
    right: 0;
}

.bus-seat-row {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    align-items: center;
    gap: 0.25rem;
}

.bus-seat-row__label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-align: center;
    color: #94a3b8;
}

.bus-seat-row__bay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.bus-seat-row__side {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bus-seat-aisle {
    flex: 0 0 1.5rem;
    align-self: stretch;
    min-height: 2.65rem;
    border-left: 1px dashed #cbd5e1;
    border-right: 1px dashed #cbd5e1;
    border-radius: 0.2rem;
    background: repeating-linear-gradient(
        180deg,
        #e2e8f0 0,
        #e2e8f0 0.3rem,
        #f8fafc 0.3rem,
        #f8fafc 0.6rem
    );
}

.bus-seat-slot {
    position: relative;
    display: block;
}

.bus-seat {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 2.35rem;
    height: 2.15rem;
    padding-bottom: 0.2rem;
    border: 2px solid transparent;
    border-radius: 0.35rem 0.35rem 0.55rem 0.55rem;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.bus-seat__back {
    position: absolute;
    top: -0.42rem;
    left: 0.2rem;
    right: 0.2rem;
    height: 0.55rem;
    border: 2px solid transparent;
    border-bottom: 0;
    border-radius: 0.3rem 0.3rem 0 0;
    background: inherit;
    transition: inherit;
}

.bus-seat__number {
    position: relative;
    z-index: 1;
}

.bus-seat--available {
    background: #d1fae5;
    color: #047857;
    border-color: #6ee7b7;
}

.bus-seat--available .bus-seat__back {
    border-color: #6ee7b7;
}

.bus-seat--available:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -4px rgb(5 150 105 / 0.45);
}

.bus-seat--booked {
    background: #e2e8f0;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
}

.bus-seat--booked .bus-seat__back {
    border-color: #cbd5e1;
}

.bus-seat--selected,
.bus-seat-input:checked + .bus-seat--available {
    background: #4f46e5;
    color: #ffffff;
    border-color: #3730a3;
    box-shadow: 0 6px 14px -6px rgb(79 70 229 / 0.65);
    transform: translateY(-1px);
}

.bus-seat-input:checked + .bus-seat--available .bus-seat__back {
    border-color: #3730a3;
}

.bus-seat-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bus-seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #475569;
}

.bus-seat-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.bus-seat-legend__swatch {
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgb(15 23 42 / 0.08);
}

.bus-seat-legend__swatch--available {
    background: #d1fae5;
}

.bus-seat-legend__swatch--booked {
    background: #e2e8f0;
}

.bus-seat-legend__swatch--selected {
    background: #4f46e5;
}

.bus-seat-selection {
    margin-top: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e0e7ff;
    background: #eef2ff;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #312e81;
}

.bus-seat-selection--empty {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}
