:root {
    /* Premium Palette: Dark Blue & Gold */
    --primary-color: #0d47a1;
    /* Deep Blue (replacing Red) */
    --primary-dark: #002171;
    --secondary-color: #000000;
    /* Black for header */
    --accent-color: #ffc107;
    /* Gold */

    --text-color: #333;
    --bg-color: #f7f9fc;
    --white: #ffffff;
    --gray: #757575;
    --light-gray: #e0e0e0;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --warning-color: #f57c00;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #37474f;
}

.btn-danger {
    background-color: #c62828;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-edit {
    background-color: var(--warning-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    margin-right: 5px;
}

.btn-edit:hover {
    background-color: #ef6c00;
}

/* Admin Dashboard Specific Styles */
#btn-logout {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.3);
    text-transform: uppercase;
    transition: var(--transition);
}

#btn-logout:hover {
    transform: scale(1.05);
    background-color: #b71c1c;
}

.admin-mode .nav-links,
.admin-mode .hamburger {
    display: none !important;
}

/* Status Badges for Admin */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-novo {
    background-color: #bbdefb;
    color: #0d47a1;
}

.status-em-atendimento {
    background-color: #fff9c4;
    color: #f57f17;
}

.status-concluido {
    background-color: #c8e6c9;
    color: #1b5e20;
}

/* Filter Styles */
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: var(--white);
    cursor: pointer;
}

/* Full Form Styles */
.full-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    /* Limit width for large screens */
    margin: 0 auto;
    /* Center the form */
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Larger min-width */
    gap: 25px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.person-status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.type-col {
    flex: 1;
}

.status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.status-col h3 {
    justify-content: flex-end;
}

.status-col select {
    width: 200px;
}

.person-type-toggle {
    display: flex;
    gap: 25px;
    padding: 10px 0;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 6px;
    width: fit-content;
}

.span-full {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Product Modal Specifics */
.fipe-lookup-section {
    background: #f4f7f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #d1d9e0;
}

.section-sub-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.fipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.fipe-grid select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.fipe-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.fipe-result span {
    font-size: 0.9rem;
    font-weight: 600;
}

.fipe-result input {
    width: 130px;
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    font-size: 1rem;
}

.form-row-img-price {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.flex-2 {
    flex: 2;
}

.flex-1 {
    flex: 1;
}

/* Modern Brand Filter Redesign */
.filter-bar-wrapper {
    position: sticky;
    top: 70px;
    /* Adjust based on header height */
    z-index: 100;
    margin: -20px 0 40px 0;
    padding: 15px 0;
    background: transparent;
}

.brand-filter-container {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    margin: 0 auto;
}

.brand-filter-container::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    height: 85px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.chip-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 5px;
}

.chip-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.filter-chip i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.filter-chip span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Effects with Brand Colors */
.filter-chip:hover {
    transform: translateY(-8px);
}

.filter-chip:hover .chip-icon {
    background: var(--brand-color);
    box-shadow: 0 10px 20px rgba(var(--brand-color-rgb), 0.3);
}

.filter-chip:hover i {
    color: white;
}

.filter-chip::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--brand-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.filter-chip:hover::after,
.filter-chip.active::after {
    width: 30px;
}

/* Active State */
.filter-chip.active .chip-icon {
    background: var(--brand-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.filter-chip.active i {
    color: white;
}

.filter-chip.active span {
    color: var(--brand-color);
}

/* Brand specific adjustments if needed */
.filter-chip[data-brand="todos"] {
    transform-origin: center;
}

@media (max-width: 768px) {
    .filter-bar-wrapper {
        position: relative;
        top: 0;
        margin-top: 20px;
    }

    .brand-filter-container {
        border-radius: 25px;
        max-width: 100%;
        justify-content: flex-start;
    }

    .filter-chip {
        min-width: 75px;
        height: 75px;
    }

    .chip-icon {
        width: 35px;
        height: 35px;
        border-radius: 12px;
    }

    .filter-chip i {
        font-size: 1.1rem;
    }
}

/* Admin Sidebar Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    margin-top: -40px;
    /* Offset the .view padding */
}

.admin-sidebar {
    width: 250px;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: sticky;
    top: 110px;
    /* Below the navbar */
    height: calc(100vh - 110px);
    border-right: 1px solid #333;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav .tab-btn {
    text-align: left;
    padding: 14px 20px;
    margin: 5px 15px;
    /* Margin for floating button look */
    width: calc(100% - 30px);
    border-radius: 12px;
    /* Modern rounded corners */
    border: none;
    background: transparent;
    color: #bbb;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.sidebar-nav .tab-btn i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .tab-btn:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-nav .tab-btn:hover i {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-nav .tab-btn.active {
    color: var(--white);
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
}

.sidebar-nav .tab-btn.active i {
    background: transparent;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #333;
}

#btn-logout {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sub-tabs Registration */
.sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    background: #f0f2f5;
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
}

.sub-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray);
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.sub-tab-btn i {
    font-size: 0.85rem;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.sub-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--secondary-color);
}

.sub-tab-btn:hover i {
    opacity: 1;
}

.sub-tab-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sub-tab-btn.active i {
    opacity: 1;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.admin-main {
    flex-grow: 1;
    background-color: var(--bg-color);
    padding: 40px 20px;
}

/* Navbar */
.navbar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    /* Increased from 50px */
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 1.1rem;
    /* Increased size */
    font-weight: 500;
    color: var(--white);
    /* Changed to white for better contrast against black header */
    letter-spacing: 2px;
    text-transform: uppercase;
    border-left: 2px solid var(--accent-color);
    /* Decorative separator */
    padding-left: 15px;
    margin-left: 5px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it stays above the mobile menu */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 110px; /* Below the navbar */
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
        margin: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Views & Routing */
.view {
    display: none;
    padding: 40px 0;
    min-height: calc(100vh - 140px);
    /* Adjust based on nav/footer */
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Section */
#home.view {
    padding-top: 0;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Sample Truck Image */
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.section-preview {
    margin-top: 40px;
}

/* Grids (Products & News) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Specific grid for Home page to enforce 3 columns if space allows */
.grid-home {
    grid-template-columns: repeat(3, 1fr);
}

.grid-news {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {

    .grid-home,
    .grid-news {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .grid-home,
    .grid-news {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 10px;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Product Details View */
.details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.details-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.details-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.details-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.details-desc {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* News Specific */
/* Redesigned News Card for Grid */
.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    /* Changed to column for grid */
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Details View (Reuse details-wrapper mostly) */
.news-details-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.news-details-date {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 30px;
    display: block;
}



/* Forms */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px 10px;
    justify-content: center;
    align-items: flex-start;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    margin: 30px auto;
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-actions {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
    background-color: var(--secondary-color);
    color: var(--white);
}

.admin-table img {
    height: 50px;
    width: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.clickable-row {
    cursor: pointer;
    transition: var(--transition);
}

.clickable-row:hover {
    background-color: #f0f7ff;
}

.customer-info-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.info-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.negotiation-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.negotiation-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.neg-id-badge {
    background: #e1e8ed;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    color: var(--secondary-color);
}

.neg-main-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.neg-main-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.neg-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-negociacao {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-conclusao {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status-reprovado {
    background-color: #ffebee;
    color: #c62828;
}

.status-aprovado {
    background-color: #e0f2f1;
    color: #00695c;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.85rem;
}

/* ── Acompanhamento Section ───────────────────────────── */
.followup-add-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.followup-add-area textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.followup-add-area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.08);
}

.followup-add-area .btn {
    align-self: flex-start;
}

.followup-grid-header {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0;
    background: #f0f2f5;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 6px 6px 0 0;
    border: 1px solid #e1e8ed;
}

.followup-card {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: start;
    gap: 0;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-top: none;
    transition: background 0.15s;
}

.followup-card:last-child {
    border-radius: 0 0 6px 6px;
}

.followup-card:hover {
    background: #f0f7ff;
}

.followup-date {
    font-size: 0.78rem;
    color: var(--gray);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 14px;
}

.followup-text {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
}

.followup-delete-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    margin-left: 10px;
}

.followup-delete-btn:hover {
    color: #e53935;
    background: #ffebee;
}

/* ──────────────────────────────────────────────────────── */

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add hamburger menu support if needed */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .news-card {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .contact-wrapper,
    .details-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Styles */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.kpi-info h3 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.kpi-info p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chart-container {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 350px;
    width: 100%;
}

.chart-container h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ABOUT PAGE STYLES
   ============================================================ */

.about-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
}

.about-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
}

.about-hero-text h1 {
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 8px;
}

.about-role {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.about-tagline {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-linkedin {
    background-color: #0077b5;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-linkedin:hover {
    background-color: #005f91;
    transform: translateY(-2px);
}

.about-body {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--accent-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Bio Card */
.about-bio-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
    border-left: 5px solid var(--primary-color);
}

.about-bio-card h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-bio-card p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-bio-card p:last-child {
    margin-bottom: 0;
}

/* Section Titles */
.about-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section-title i {
    color: var(--primary-color);
}

/* Timeline */
.timeline {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--light-gray));
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-dot.highlight {
    background: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color), 0 0 12px rgba(255, 193, 7, 0.5);
    width: 20px;
    height: 20px;
    left: -28px;
    top: 18px;
}

.timeline-card {
    background: var(--white);
    border-radius: 10px;
    padding: 22px 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.timeline-card.featured {
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(to right, #fffde7, var(--white));
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-company {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.timeline-role {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.timeline-period {
    font-size: 0.82rem;
    color: var(--gray);
    white-space: nowrap;
    background: var(--bg-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    height: fit-content;
}

.timeline-card>p {
    color: var(--text-color);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tags span {
    background: #e8eef7;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.skill-item {
    background: var(--white);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.skill-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.skill-item:hover i {
    color: var(--white);
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.education-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.edu-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    flex-shrink: 0;
}

.edu-school {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.edu-degree {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.edu-period {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 500;
}

/* About — Responsive */
@media (max-width: 768px) {
    .about-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .about-hero-text h1 {
        font-size: 1.8rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-header {
        flex-direction: column;
    }

    .timeline-period {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ADMIN MODE — Lock Navigation
   ============================================================ */

/* Block all nav links and logo clicks when inside admin panel */
body.admin-mode .navbar .nav-link,
body.admin-mode .navbar .logo {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}

/* Keep the Adm link visible but still blocked (user is already there) */
body.admin-mode .navbar .nav-link#admin-link-header {
    opacity: 0.6;
}

/* Show a subtle locked indicator on the nav */
body.admin-mode .nav-links {
    position: relative;
}

/* ============================================================
   CONTACT PAGE STYLES
   ============================================================ */

/* Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    padding: 50px 0;
}

.contact-hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-hero-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
}

.contact-hero-text h1 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 8px;
}

.contact-hero-sub {
    color: #ccc;
    font-size: 1rem;
    max-width: 520px;
}

/* Body */
.contact-body {
    padding: 40px 0 60px;
}

/* Two-column layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Form Card */
.contact-form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--box-shadow);
}

/* 2-col row inside form */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Label helpers */
.req {
    color: #e53935;
    font-weight: 700;
    margin-left: 2px;
}

.opt {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.82em;
    margin-left: 4px;
}

/* Form labels with icons */
.contact-form-card label i {
    color: var(--primary-color);
    margin-right: 4px;
    font-size: 0.9em;
}

/* Submit button */
.contact-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
    transition: var(--transition);
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Contact info cards */
.contact-info-card {
    background: var(--white);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    word-break: break-all;
    transition: var(--transition);
}

.contact-info-value:hover {
    color: var(--primary-color);
}

/* Business Hours Card */
.contact-hours-card {
    background: var(--white);
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: var(--box-shadow);
    margin-top: 5px;
}

.contact-hours-card h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.contact-hours-card h3 i {
    color: var(--primary-color);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 7px 0;
    font-size: 0.88rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--light-gray);
}

.hours-table td:last-child {
    text-align: right;
}

.hours-table tr:last-child td {
    border-bottom: none;
}

/* Contact — Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        order: -1;
    }
}

@media (max-width: 600px) {
    .contact-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-hero-text h1 {
        font-size: 1.7rem;
    }
}

/* Client Grid & Cards (Admin Dashboard Style) */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    padding-top: 10px;
}

.client-card {
    background: #1a2233;
    /* Darker background similar to reference */
    border-radius: 12px;
    padding: 14px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(13, 71, 161, 0.5);
    /* Primary color glow */
}

.client-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    color: #aeb9ce;
    /* Lighter text for secondary info */
    font-size: 0.9rem;
}

.client-info-item i {
    color: #ff4081;
    /* Pinkish/Red icon from reference */
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.client-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.client-source-badge {
    background: #2c364c;
    color: #7986cb;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.client-link-details {
    color: #7986cb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.client-link-details:hover {
    color: #c5cae9;
}

/* Modern Pulse Animation for icons if needed */
@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Scrollbar for Admin Grid */
.admin-main::-webkit-scrollbar {
    width: 8px;
}

.admin-main::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.admin-main::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}