/* Mario Auto Keys Admin Panel - Matching Frontend Design */
:root {
    /* Exact colors from frontend tailwind.config.ts */
    --primary: #f06b29;
    --primary-dark: #d85a1f;
    --primary-light: #ff8547;
    --accent: #1a1a2e;
    --accent-light: #16213e;
    --neutral-warm: #f8f6f3;
    --neutral-dark: #2d2d2d;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--neutral-warm);
    color: var(--neutral-dark);
    line-height: 1.6;
}

/* Sidebar - Dark gradient like frontend footer */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.sidebar-logo-icon {
    font-size: 32px;
}

.sidebar-logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
    padding-left: 44px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    position: relative;
}

.sidebar-menu a:hover {
    background: rgba(240, 107, 41, 0.15);
    color: white;
}

.sidebar-menu a.active {
    background: rgba(240, 107, 41, 0.25);
    color: white;
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.sidebar-menu svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--neutral-warm);
}

/* Header - Clean white like frontend */
.header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.header h1 {
    font-size: 1.75rem;
    color: var(--accent);
    font-weight: 700;
    margin: 0;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-user-info {
    text-align: right;
}

.header-user-name {
    font-size: 0.9375rem;
    color: var(--neutral-dark);
    font-weight: 600;
}

.header-user-role {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.btn-logout {
    background: var(--danger);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239,68,68,0.2);
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

/* Content Area */
.content {
    padding: 30px;
}

/* Cards - Matching frontend shadow style */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--neutral-warm);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

/* Stats Cards - Orange primary theme */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(240, 107, 41, 0.2);
}

.stat-card.success {
    border-left-color: var(--success);
}

.stat-card.warning {
    border-left-color: var(--warning);
}

.stat-card.info {
    border-left-color: var(--info);
}

.stat-card.danger {
    border-left-color: var(--danger);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Buttons - Orange gradient primary */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(240, 107, 41, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(240, 107, 41, 0.45);
}

.btn-secondary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(26,26,46,0.2);
}

.btn-secondary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,26,46,0.3);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Forms - Clean design */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--neutral-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 107, 41, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Tables - Clean and modern */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: var(--neutral-warm);
    color: var(--accent);
    font-weight: 700;
    text-align: left;
    padding: 16px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

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

tr:hover {
    background: var(--neutral-warm);
}

/* Badges - Colorful status indicators */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

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

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

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.badge-primary {
    background: #ffedd5;
    color: #c2410c;
}

/* Login Page - Dark gradient background */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.login-logo h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.login-logo p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Alerts - Clean notifications */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.spinner {
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--accent);
    font-weight: 700;
}

.empty-state p {
    font-size: 0.9375rem;
    margin-bottom: 24px;
    color: var(--gray-600);
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.action-bar-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.action-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9375rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray-400);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--gray-200);
    background: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-700);
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Close Button (Mobile) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.25rem;
        flex: 1;
    }

    .header-user {
        gap: 10px;
    }

    .header-user-info {
        display: none;
    }

    .btn-logout {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .content {
        padding: 15px;
    }

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

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .login-card {
        padding: 32px 24px;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar-left {
        flex-direction: column;
    }

    .search-box {
        max-width: 100%;
    }

    .action-bar-right {
        width: 100%;
        justify-content: stretch;
    }

    .action-bar-right .btn {
        flex: 1;
        justify-content: center;
    }

    /* Table responsive */
    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 12px 10px;
    }

    /* Filter pills scrollable */
    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-pill {
        flex-shrink: 0;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    /* Quick actions wrap */
    .card > div[style*="flex"] {
        flex-direction: column;
    }

    .card > div[style*="flex"] .btn {
        width: 100%;
        justify-content: center;
    }
}

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

    .header h1 {
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .badge {
        padding: 4px 8px;
        font-size: 0.6875rem;
    }
}

/* Analytics page two-column grid responsive */
@media (max-width: 768px) {
    div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }

    div[style*="grid-template-columns: 1fr 1fr"] > .card {
        margin-bottom: 16px;
    }
}

/* Modal responsive */
@media (max-width: 768px) {
    #customer-modal > .card,
    #vehicle-modal > .card,
    #job-modal > .card,
    #quote-modal > .card,
    div[style*="position: fixed"] > .card {
        max-width: 100% !important;
        margin: 10px !important;
        max-height: calc(100vh - 20px) !important;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--neutral-warm);
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--accent);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--gray-500);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--accent);
}

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100% !important;
        max-height: calc(100vh - 20px);
    }
}

/* Convert Modal Styles */
#convert-modal {
    padding: 20px;
}

#convert-modal > .card {
    display: flex;
    flex-direction: column;
}

#convert-modal .card-header {
    flex-shrink: 0;
}

#convert-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Convert Modal Mobile Responsive */
@media (max-width: 768px) {
    #convert-modal {
        padding: 0 !important;
        align-items: flex-start !important;
    }

    #convert-modal > .card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
        height: 100vh !important;
    }

    #convert-modal .card-header {
        border-radius: 0 !important;
        padding: 16px !important;
    }

    #convert-modal .card-title {
        font-size: 1.1rem;
    }

    #convert-content {
        padding: 16px !important;
    }

    /* Quote Summary */
    #convert-content > div[style*="background: #fff7ed"] {
        padding: 12px !important;
        margin-bottom: 16px !important;
    }

    #convert-content > div[style*="background: #fff7ed"] > div[style*="grid"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Existing Records Warning Box */
    #convert-content > div[style*="background: #fef3c7"] {
        padding: 12px !important;
        margin-bottom: 16px !important;
    }

    /* Warning box inner cards - stack on mobile */
    #convert-content > div[style*="background: #fef3c7"] > div[style*="background: white"] {
        padding: 10px !important;
    }

    #convert-content > div[style*="background: #fef3c7"] > div[style*="background: white"] > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Use existing checkbox labels */
    #convert-content label[style*="background: #dcfce7"] {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 12px !important;
    }

    /* Form sections */
    #dvla-lookup-section,
    #customer-details-section,
    #vehicle-details-section {
        margin-bottom: 16px !important;
    }

    /* DVLA lookup flex container */
    #dvla-lookup-section > div[style*="display: flex"] {
        flex-direction: column !important;
    }

    #dvla-lookup-section > div[style*="display: flex"] input {
        width: 100% !important;
    }

    #dvla-lookup-section > div[style*="display: flex"] button {
        width: 100% !important;
    }

    /* Customer form grid - 1 column on mobile */
    #customer-details-section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Vehicle form grid - 1 column on mobile */
    #vehicle-details-section > div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Job Details section */
    #convert-content > div:last-of-type[style*="margin-bottom: 24px"] > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Job types checkbox container */
    #convert-content div[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Job types flex wrap */
    #convert-content div[style*="display: flex; flex-wrap: wrap; gap: 8px; padding: 12px"] {
        gap: 6px !important;
        padding: 10px !important;
    }

    #convert-content div[style*="display: flex; flex-wrap: wrap; gap: 8px; padding: 12px"] label {
        padding: 6px 10px !important;
        font-size: 0.875rem !important;
    }

    /* Job notes textarea */
    #convert-content textarea {
        min-height: 80px !important;
    }

    /* Submit button footer */
    #convert-content > div[style*="border-top: 1px solid"] {
        flex-direction: column !important;
        gap: 10px !important;
        padding-top: 16px !important;
        position: sticky;
        bottom: 0;
        background: white;
        margin: 0 -16px -16px -16px;
        padding: 16px !important;
        border-top: 1px solid var(--gray-200) !important;
    }

    #convert-content > div[style*="border-top: 1px solid"] button {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
    }

    /* Make primary button stand out more */
    #convert-content > div[style*="border-top: 1px solid"] button.btn-primary {
        order: -1;
    }

    /* Section headers */
    #convert-content h3 {
        font-size: 0.95rem !important;
    }

    /* Step number badges */
    #convert-content h3 span[style*="border-radius: 50%"] {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    #convert-content > div[style*="background: #fff7ed"] > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Vehicle form - single column on very small screens */
    #vehicle-details-section > div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Form labels */
    .form-label {
        font-size: 0.875rem;
    }

    /* Form inputs */
    .form-control {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Status select in quotes/dashboard table */
.status-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding: 8px 32px 8px 14px !important;
    border-radius: 20px !important;
    border: 2px solid transparent !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 120px;
}

.status-select:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(240, 107, 41, 0.2) !important;
}

.status-select:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Status colors with dropdown arrow matching text color */
.status-select.status-new {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd !important;
    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='%231e40af' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

.status-select.status-contacted {
    background-color: #ffedd5;
    color: #c2410c;
    border-color: #fdba74 !important;
    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='%23c2410c' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

.status-select.status-quoted {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fcd34d !important;
    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='%2392400e' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

.status-select.status-converted {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7 !important;
    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='%23065f46' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

.status-select.status-lost {
    background-color: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db !important;
    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='%234b5563' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

/* Mobile responsive status select */
@media (max-width: 768px) {
    .status-select {
        min-width: 100px;
        padding: 6px 28px 6px 10px !important;
        font-size: 0.75rem !important;
    }
}

/* Badge colors for matching */
.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-gray {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
