/**
 * Toyota Financing Pro - Custom Styles
 */

/* Toyota Brand Colors */
:root {
    --toyota-red: #EB0A1E;
    --toyota-dark-red: #C00816;
    --toyota-black: #231F20;
    --toyota-gray: #8E8E8E;
    --toyota-light-gray: #F2F2F2;
    --toyota-white: #FFFFFF;
}

/* General Styles */
body {
    background-color: #f8f9fa;
    color: #333;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--toyota-black) 0%, #3a3a3a 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Section Styles */
.section-py {
    padding: 80px 0;
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.calculator-result {
    background: linear-gradient(135deg, var(--toyota-red) 0%, var(--toyota-dark-red) 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
}

.monthly-payment {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Vehicle Card */
.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.vehicle-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vehicle-card-body {
    padding: 20px;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--toyota-red);
}

.vehicle-mpg {
    font-size: 0.9rem;
    color: #666;
}

/* Offer Card */
.offer-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--toyota-red);
    transition: all 0.3s ease;
}

.offer-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.offer-rate {
    font-size: 2rem;
    font-weight: 700;
    color: var(--toyota-red);
}

.offer-valid {
    font-size: 0.85rem;
    color: #666;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--toyota-red);
    box-shadow: 0 0 0 0.2rem rgba(235, 10, 30, 0.15);
}

.form-label {
    font-weight: 500;
}

/* Button Styles */
.btn-toyota-red {
    background-color: var(--toyota-red);
    border-color: var(--toyota-red);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-toyota-red:hover {
    background-color: var(--toyota-dark-red);
    border-color: var(--toyota-dark-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(235, 10, 30, 0.3);
}

/* Feature Box */
.feature-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--toyota-red) 0%, var(--toyota-dark-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Testimonial */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stars {
    color: #ffc107;
}

/* Status Badge */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Range Slider */
.form-range::-webkit-slider-thumb {
    background: var(--toyota-red);
}

.form-range::-webkit-slider-runnable-track {
    background: #e9ecef;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid var(--toyota-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #495057;
}

/* Admin Sidebar */
.admin-sidebar {
    background: var(--toyota-black);
    min-height: calc(100vh - 72px);
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 10px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--toyota-red);
    color: white;
}

/* Stats Card */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--toyota-red);
}

/* Auth Pages */
.auth-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--toyota-black) 0%, #3a3a3a 100%);
    min-height: calc(100vh - 72px);
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .monthly-payment {
        font-size: 2rem;
    }
    
    .calculator-card,
    .offer-card {
        padding: 20px;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trade-In Slider */
.trade-in-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
}

.trade-in-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--toyota-red);
    cursor: pointer;
}

/* Modal Styles */
.modal-header {
    background: var(--toyota-red);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Category Pills */
.category-pill {
    padding: 8px 20px;
    border-radius: 20px;
    background: #e9ecef;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-pill:hover,
.category-pill.active {
    background: var(--toyota-red);
    color: white;
}
