.error {
    color: red;
}

/* 
 * Car Rental Rates Table - Custom CSS
 * Replaces Tailwind utilities with pure CSS
 */

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Container */
.rates-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .rates-container {
        padding: 2rem;
    }
}

/* Main Card */
.rates-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Header */
.rates-header {
    background: linear-gradient(to bottom right, #f8fafc, #eff6ff);
    border-bottom: 2px solid #e5e7eb;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .rates-header {
        padding: 2rem;
    }
}

.rates-header-subtitle {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-style: italic;
    color: #4b5563;
}

.rates-header-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin: 0;
}

@media (min-width: 768px) {
    .rates-header-title {
        font-size: 2.25rem;
    }
}

/* Table Section */
.rates-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .rates-section {
        padding: 2rem;
    }
}

.rates-section:last-of-type {
    border-bottom: none;
}

/* Table Wrapper */
.rates-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rates-table-container {
    display: inline-block;
    min-width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Table Base */
.rates-table {
    min-width: 100%;
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Blue Theme (Small Car) */
.rates-table.blue thead tr:first-child {
    background: #2563eb;
}

.rates-table.blue thead tr:nth-child(2) {
    background: #3b82f6;
}

.rates-table.blue thead tr:nth-child(2) th {
    border-right: 1px solid #60a5fa;
}

.rates-table.blue thead tr:nth-child(2) th:last-child {
    border-right: none;
}

.rates-table.blue tbody tr {
    background: #eff6ff;
}

.rates-table.blue tbody tr:hover {
    background: #dbeafe;
}

/* Amber Theme (Medium Car) */
.rates-table.amber thead tr:first-child {
    background: #d97706;
}

.rates-table.amber thead tr:nth-child(2) {
    background: #f59e0b;
}

.rates-table.amber thead tr:nth-child(2) th {
    border-right: 1px solid #fbbf24;
}

.rates-table.amber thead tr:nth-child(2) th:last-child {
    border-right: none;
}

.rates-table.amber tbody tr {
    background: #fffbeb;
}

.rates-table.amber tbody tr:hover {
    background: #fef3c7;
}

/* Green Theme (SUV) */
.rates-table.green thead tr:first-child {
    background: #16a34a;
}

.rates-table.green thead tr:nth-child(2) {
    background: #22c55e;
}

.rates-table.green thead tr:nth-child(2) th {
    border-right: 1px solid #4ade80;
}

.rates-table.green thead tr:nth-child(2) th:last-child {
    border-right: none;
}

.rates-table.green tbody tr {
    background: #f0fdf4;
}

.rates-table.green tbody tr:hover {
    background: #dcfce7;
}

/* Table Headers */
.rates-table thead th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.rates-table thead tr:first-child th {
    font-size: 1rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .rates-table thead th {
        padding: 0.75rem 1rem;
    }
    
    .rates-table thead tr:first-child th {
        font-size: 1.125rem;
    }
}

.rates-table thead tr:nth-child(2) th {
    text-align: center;
}

/* Table Body */
.rates-table tbody tr {
    transition: background-color 0.2s;
}

.rates-table tbody tr:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.rates-table tbody td {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: #374151;
    border-right: 1px solid #e5e7eb;
}

.rates-table tbody td:last-child {
    border-right: none;
}

@media (min-width: 768px) {
    .rates-table tbody td {
        padding: 0.75rem 1rem;
    }
}

.rates-table tbody td:first-child {
    font-weight: 600;
    color: #111827;
}

/* Date Range Rows */
.rates-table tbody tr.date-range td {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-style: italic;
    color: #4b5563;
    border-right: none;
}

/* Footer */
.rates-footer {
    background: linear-gradient(to bottom right, #f9fafb, #f1f5f9);
    border-top: 2px solid #e5e7eb;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .rates-footer {
        padding: 2rem;
    }
}

.rates-footer-main {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-style: italic;
    color: #1f2937;
}

.rates-footer-sub {
    font-size: 0.75rem;
    color: #4b5563;
    margin: 0;
}

/* Mobile Scroll Indicator */
.mobile-scroll-hint {
    display: block;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #dbeafe;
    border-radius: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .mobile-scroll-hint {
        display: none;
    }
}

.mobile-scroll-hint p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e40af;
}

/* Simple Search */
.simplesearch-highlight {
    color: #ff5100;
    font-weight: bold;
}
/* Simple Search */

/*Alerts*/
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}
/*Alerts*/
