/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Estilo Webmotors */
.main-header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e9ecef;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.main-header h1 a {
    color: #E31837;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-header nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.main-header nav a:hover {
    color: #E31837;
    background-color: #f8f9fa;
}

/* Hero Banner - Estilo Webmotors */
.hero-banner {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel {
    position: relative;
    height: 100%;
}

.carousel-item {
    position: relative;
    height: 100%;
    display: none;
}

.carousel-item:first-child {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 3rem;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* Search Section - Estilo Webmotors */
.search-section {
    background: white;
    padding: 2rem;
    margin: -2rem auto 3rem;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-tab {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-tab.active {
    background: #E31837;
    color: white;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #E31837;
}

/* Buttons - Estilo Webmotors */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #E31837;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background: #c41230;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.3);
}

.btn-primary {
    background: #E31837;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-whatsapp {
    background: #25d366;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.whatsapp-icon {
    margin-right: 0.5rem;
}

/* Vehicle Grid - Estilo Webmotors com melhor responsividade */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

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

.vehicle-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.vehicle-card-content {
    padding: 1.5rem;
}

.vehicle-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.vehicle-card .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #E31837;
    margin-bottom: 0.5rem;
}

.vehicle-card .location {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.vehicle-card .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Sections - Estilo Webmotors */
section {
    margin: 4rem 0;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
    font-weight: 700;
}

.featured-vehicles {
    background: white;
    padding: 3rem 0;
    border-radius: 16px;
    margin: 3rem 0;
}

/* Vehicle Details - Estilo Webmotors */
.vehicle-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.vehicle-images .main-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}


.thumbnail-gallery {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
    align-content: flex-start;
    flex-direction: row;
}

.thumbnail {
    width: 90px;
    height: 70px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
    flex-shrink: 0;
}


.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #E31837;
}

.vehicle-info h1 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.vehicle-info .price {
    font-size: 2.5rem;
    color: #E31837;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.vehicle-info .location,
.vehicle-info .views {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.description {
    margin: 2rem 0;
}

.description h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
}

.description p {
    line-height: 1.8;
    color: #555;
}

.contact-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Admin Styles - Estilo Webmotors */
.admin-container {
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e9ecef;
}

.admin-header h1 {
    color: #E31837;
    font-weight: 700;
}

.admin-header nav {
    display: flex;
    gap: 1rem;
}

.admin-header nav a {
    color: #333;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.admin-header nav a:hover {
    background: #E31837;
    color: white;
}

.admin-main {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.stat-card h3 {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #E31837;
}

.quick-actions {
    margin: 3rem 0;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.quick-actions h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.quick-actions .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Forms - Estilo Webmotors */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #E31837;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.checkbox-group input {
    width: auto;
    transform: scale(1.2);
}

/* Login - Estilo Webmotors */
.login-container {
    max-width: 450px;
    margin: 5rem auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

/* Messages - Estilo Webmotors */
.error-message,
.error-messages p {
    background: #dc3545;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #c82333;
}

.success-message {
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #1e7e34;
}

/* Tables - Estilo Webmotors */
.vehicles-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.vehicles-table th,
.vehicles-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.vehicles-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.vehicles-table tbody tr:hover {
    background: #f8f9fa;
}

.vehicles-table .actions {
    white-space: nowrap;
}

.vehicles-table .actions .btn {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.vehicles-table img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Images - Estilo Webmotors */
.current-images {
    margin: 2rem 0;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.current-images h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.image-item {
    text-align: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    display: block;
}

.image-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #dc3545;
    cursor: pointer;
}

/* Footer - Estilo Webmotors */
.main-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #E31837;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(227, 24, 55, 0.3);
}

.back-to-top:hover {
    background: #c41230;
    transform: translateY(-3px);
}

/* Responsive Design - Melhorado para mobile */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-logo {
        height: 40px;
        max-width: 150px;
    }

    .main-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-banner {
        height: 300px;
    }

    .carousel-caption {
        padding: 2rem 1rem;
    }

    .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .search-section {
        margin: -1rem 1rem 2rem;
        padding: 1.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .search-tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vehicle-card img {
        height: 200px;
    }

    .vehicle-details {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .vehicle-images .main-image img {
        height: 300px;
    }

    .vehicle-info h1 {
        font-size: 2.2rem;
    }

    .vehicle-info .price {
        font-size: 2rem;
    }

    .thumbnail-gallery {
        gap: 0.5rem;
    }

    .thumbnail {
        width: 70px;
        height: 55px;
    }

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

    .admin-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-main {
        padding: 2rem 1rem;
    }

    .vehicles-table {
        font-size: 0.9rem;
        overflow-x: auto;
    }

    .vehicles-table .actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .login-container {
        margin: 2rem 1rem;
        padding: 2rem;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .image-item img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-logo {
        height: 35px;
        max-width: 120px;
    }

    .search-section {
        margin: -1rem 0.5rem 2rem;
        padding: 1rem;
    }

    .vehicle-card-content {
        padding: 1rem;
    }

    .vehicle-card h3 {
        font-size: 1.1rem;
    }

    .vehicle-card .price {
        font-size: 1.4rem;
    }

    .vehicle-card img {
        height: 180px;
    }

    .vehicle-images .main-image img {
        height: 250px;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .image-item img {
        height: 80px;
    }
}



/* General Content Page Styling */
.content-page {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.content-page h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.content-page h3 {
    font-size: 1.8rem;
    color: #E31837;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.content-page p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.content-page ul,
.content-page ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.content-page ul li,
.content-page ol li {
    margin-bottom: 0.5rem;
}

.content-page a {
    color: #E31837;
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

/* Service Grid for Services Page */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .content-page {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .content-page h2 {
        font-size: 2rem;
    }

    .content-page h3 {
        font-size: 1.5rem;
    }

    .content-page p,
    .content-page ul,
    .content-page ol {
        font-size: 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }
}

