/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --accent-color: #F39C12;
    --neutral-color: #ECF0F1;
    --text-color: #2C3E50;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* ===== NAVEGAÇÃO ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===== BOTÕES ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34495e, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== BOTÃO LOGIN NO MENU ===== */
.navbar .btn-outline-primary {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    line-height: 1.2;
    height: auto;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
}

/* ===== PÁGINA DE SERVIÇOS ===== */
.service-feature {
    padding: 2rem 0;
}

.service-icon-large {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    text-align: center;
    line-height: 80px;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.detail-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    min-width: 20px;
}

.detail-item span {
    font-weight: 500;
    color: var(--dark-color);
}

.service-image {
    text-align: center;
    padding: 2rem;
}

.image-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 3rem 2rem;
    border: 2px dashed var(--primary-color);
    transition: all 0.3s ease;
}

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

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Responsividade para serviços */
@media (max-width: 768px) {
    .service-feature {
        padding: 1rem 0;
        text-align: center;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
    
    .image-placeholder {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-transform: capitalize;
}

.status-em-andamento {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-finalizado {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelado {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-chegada-materiais {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-manipulacao {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-envase {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-rotulagem {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-liberado-transportadora {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

/* ===== PRODUTO ITEM ===== */
.produto-item {
    transition: all 0.3s ease;
}

.produto-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-table {
    padding: 0.375rem 1rem;
    font-size: 0.8rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.8)), url('../images/hero-cosmetics.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.1), rgba(243, 156, 18, 0.1));
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== SEÇÕES ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.bg-light-custom {
    background-color: var(--light-gray);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

/* ===== ESTATÍSTICAS ===== */
.stats {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: var(--white);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== FORMULÁRIOS ===== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a252f, var(--primary-color));
    color: var(--white);
}

.footer h5 {
    color: var(--accent-color);
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-floating:hover {
    transform: translateY(-3px);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVIDADE ===== */
/* Correção para dropdown do menu em tablets e resoluções menores */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: visible;
        padding: 1rem 0;
    }
    
    .navbar-collapse.show {
        overflow-y: auto;
        overflow-x: visible;
        overflow: visible;
    }
    
    /* Garantir que dropdowns não sejam cortados */
    .navbar-collapse .nav-item.dropdown {
        overflow: visible;
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        background-color: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0.375rem !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        transform: none !important;
        display: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 1050 !important;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
        overflow: visible !important;
        pointer-events: auto !important;
        height: auto !important;
        min-height: auto !important;
        position: static !important;
    }
    
    /* Garantir que o dropdown seja visível mesmo com outros estilos */
    .navbar-nav .nav-item.dropdown .dropdown-menu.show,
    .navbar-collapse .dropdown-menu.show,
    .navbar-collapse.show .dropdown-menu.show,
    .navbar-collapse.show .nav-item.dropdown .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        transform: none !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }
    
    /* Forçar exibição quando tem classe show - regra mais específica */
    .navbar-collapse.show .nav-item.dropdown .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Override qualquer estilo inline que possa estar escondendo */
    .navbar-collapse .dropdown-menu[style*="display: none"] {
        display: block !important;
    }
    
    .navbar-collapse .dropdown-menu.show[style] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: var(--text-color);
        display: block;
        width: 100%;
        clear: both;
        white-space: nowrap;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #e9ecef;
        color: var(--primary-color);
    }
    
    .navbar-nav .dropdown-divider {
        margin: 0.5rem 0;
        border-top: 1px solid #dee2e6;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        display: block;
    }
    
    .navbar-nav .nav-link.dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
    
    /* Garantir que todos os itens do menu sejam visíveis */
    .navbar-nav .nav-item {
        width: 100%;
        display: block;
    }
    
    .navbar-nav .nav-item .badge {
        display: inline-block;
        margin: 0.5rem 1rem;
    }
    
    /* Garantir que o dropdown seja clicável e visível */
    .navbar-nav .dropdown-toggle[aria-expanded="true"] {
        background-color: #e9ecef;
    }
    
    /* Garantir que o dropdown não seja cortado */
    .navbar-nav .nav-item.dropdown {
        position: relative;
        z-index: 1000;
    }
    
    .navbar-nav .dropdown-menu {
        z-index: 1001 !important;
        position: relative !important;
    }
    
    /* Garantir que o container do menu não corte o dropdown */
    .navbar-collapse {
        z-index: 1000;
    }
}

/* Tablets e resoluções médias */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 80vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-top: 0.5rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    .hero .container .row {
        padding-top: 2rem;
        padding-bottom: 1rem;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 0.5rem;
    }
}

/* iPad específico - resoluções médias em modo paisagem */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hero {
        min-height: 85vh;
        padding-top: 1.5rem;
    }
    
    .hero .container .row {
        padding-top: 2.5rem;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn-floating {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

/* ===== UTILIDADES ===== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow) !important;
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg) !important;
}

.mt-navbar {
    margin-top: 120px !important; /* Aumentado para dar mais espaço entre menu e conteúdo */
    padding-top: 20px; /* Adiciona padding adicional */
}

.categorias-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1.5rem;
}
.categoria-card {
    flex: 1 1 350px;
    max-width: 100%;
}
.categoria-titulo {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
}
@media (max-width: 991px) {
    .categorias-flex {
        flex-direction: column;
        gap: 2rem 0;
    }
    .categoria-card {
        flex: 1 1 100%;
    }
}

.fomulas-horizontal-list.formulas-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}
.formula-card-item.formula-horizontal-card {
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 100%;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(44,62,80,0.04);
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    min-height: 56px;
    transition: box-shadow 0.15s;
}
.formula-card-item.formula-horizontal-card:hover {
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    background: var(--light-gray);
}
@media (max-width: 991px) {
    .fomulas-horizontal-list.formulas-flex {
        flex-direction: column;
        gap: 1rem 0;
    }
    .formula-card-item.formula-horizontal-card {
        flex: 1 1 100%;
        min-width: 0;
    }
}

.formulas-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin: 0;
}
.formula-card-item {
    flex: 1 1 calc(33.333% - 0.67rem);
    min-width: 240px;
    max-width: calc(33.333% - 0.67rem);
    display: flex;
    margin: 0;
}
.formula-public-card {
    width: 100%;
    margin-bottom: 0;
}
@media (max-width: 1200px) {
    .formula-card-item {
        flex: 1 1 calc(50% - 0.67rem);
        max-width: calc(50% - 0.67rem);
    }
}
@media (max-width: 768px) {
    .formulas-flex {
        flex-direction: column;
        gap: 0.7rem 0;
    }
    .formula-card-item {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* ===== BOTÕES COM ÍCONES NA TABELA ===== */
.btn-table {
    margin: 0 2px;
    padding: 0.375rem 0.5rem;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-table i {
    font-size: 0.875rem;
}

.btn-table:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-table:active {
    transform: translateY(0);
}

/* Responsividade para botões da tabela */
@media (max-width: 768px) {
    .btn-table {
        margin: 0 1px;
        padding: 0.25rem 0.375rem;
        min-width: 28px;
        height: 28px;
    }
    
    .btn-table i {
        font-size: 0.75rem;
    }
}

/* ===== CORREÇÃO PARA RADIO BUTTONS ===== */
.form-check-input[type="radio"]:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.form-check-input[type="radio"]:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.form-check-label {
    color: var(--text-color) !important;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-left: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-body {
    margin-bottom: 10px;
}

.timeline-footer {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

/* ===== DASHBOARD ESTATÍSTICAS ===== */
.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-color) 0deg,
        var(--primary-color) calc(var(--percentage) * 3.6deg),
        #e9ecef calc(var(--percentage) * 3.6deg),
        #e9ecef 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.progress-circle small {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Cards de estatísticas */
.card.bg-primary,
.card.bg-warning,
.card.bg-success,
.card.bg-secondary,
.card.bg-info,
.card.bg-dark {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.bg-primary:hover,
.card.bg-warning:hover,
.card.bg-success:hover,
.card.bg-secondary:hover,
.card.bg-info:hover,
.card.bg-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsividade para dashboard */
@media (max-width: 768px) {
    .progress-circle {
        width: 80px;
        height: 80px;
    }
    
    .progress-circle::before {
        width: 60px;
        height: 60px;
    }
    
    .progress-text {
        font-size: 1.2rem;
    }
    
    .progress-circle small {
        font-size: 0.8rem;
        bottom: -25px;
    }
}

@media (max-width: 576px) {
    .progress-circle {
        width: 70px;
        height: 70px;
    }
    
    .progress-circle::before {
        width: 50px;
        height: 50px;
    }
    
    .progress-text {
        font-size: 1rem;
    }
    
    .progress-circle small {
        font-size: 0.7rem;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .progress-circle {
        width: 60px;
        height: 60px;
    }
    
    .progress-circle::before {
        width: 40px;
        height: 40px;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    .progress-circle small {
        font-size: 0.65rem;
        bottom: -18px;
    }
}

/* ===== AUTOCOMPLETE CLIENTES ===== */
#cliente_sugestoes {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: white;
}

#cliente_sugestoes .list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#cliente_sugestoes .list-group-item:hover {
    background-color: #f8f9fa;
}

#cliente_sugestoes .list-group-item:last-child {
    border-bottom: none;
}

#cliente_sugestoes .list-group-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

#cliente_sugestoes .list-group-item small {
    font-size: 0.875rem;
}

/* Posicionamento relativo para o container do cliente */
.mb-3 {
    position: relative;
}

/* ===== TIMELINE HORIZONTAL ===== */
.timeline-horizontal {
    padding: 20px 0;
    width: 100%;
}

/* ===== BOTÃO EXPANDIR HISTÓRICO ===== */
.btn-expandir-historico {
    transition: all 0.3s ease;
}

.btn-expandir-historico:hover {
    transform: scale(1.1);
    color: var(--bs-primary) !important;
}

.produto-progress {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.produto-progress h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.produto-progress .progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.produto-progress .progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

.timeline-horizontal-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
}

.timeline-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
    min-width: 0;
}

.timeline-marker-horizontal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-item-horizontal.completed .timeline-marker-horizontal {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.timeline-item-horizontal.current .timeline-marker-horizontal {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    animation: pulse 2s infinite;
}

.timeline-item-horizontal.future .timeline-marker-horizontal {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.timeline-content-horizontal {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.timeline-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-color);
    line-height: 1.2;
}

.timeline-description {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.2;
    display: none;
}

/* Mostrar descrições apenas em telas maiores */
@media (min-width: 992px) {
    .timeline-description {
        display: block;
    }
}

.timeline-progress {
    margin-top: 8px;
}

.timeline-connector {
    width: 20px;
    height: 2px;
    background: #dee2e6;
    margin-top: 25px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-connector.completed {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.timeline-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: inherit;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
}

/* Responsividade para timeline horizontal */
@media (max-width: 768px) {
    .timeline-horizontal-container {
        gap: 8px;
    }
    
    .timeline-marker-horizontal {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .timeline-title {
        font-size: 0.75rem;
    }
    
    .timeline-description {
        font-size: 0.65rem;
    }
    
    .timeline-connector {
        width: 15px;
        margin-top: 22px;
    }
    
    .timeline-connector::after {
        width: 5px;
        height: 5px;
        right: -2px;
        top: -1px;
    }
}

@media (max-width: 576px) {
    .timeline-horizontal-container {
        gap: 5px;
    }
    
    .timeline-marker-horizontal {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .timeline-title {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .timeline-description {
        font-size: 0.6rem;
        margin-bottom: 6px;
    }
    
    .timeline-connector {
        width: 12px;
        margin-top: 20px;
    }
    
    .timeline-connector::after {
        width: 4px;
        height: 4px;
        right: -2px;
        top: -1px;
    }
}

@media (max-width: 480px) {
    .timeline-horizontal-container {
        gap: 3px;
    }
    
    .timeline-marker-horizontal {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .timeline-title {
        font-size: 0.65rem;
        margin-bottom: 1px;
    }
    
    .timeline-description {
        font-size: 0.55rem;
        margin-bottom: 4px;
    }
    
    .timeline-connector {
        width: 10px;
        margin-top: 17px;
    }
    
    .timeline-connector::after {
        width: 3px;
        height: 3px;
        right: -1px;
        top: -0.5px;
    }
}

@media (max-width: 360px) {
    .timeline-horizontal-container {
        gap: 2px;
    }
    
    .timeline-marker-horizontal {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .timeline-title {
        font-size: 0.6rem;
        margin-bottom: 0;
    }
    
    .timeline-connector {
        width: 8px;
        margin-top: 15px;
    }
    
    .timeline-connector::after {
        width: 2px;
        height: 2px;
        right: -1px;
        top: -0.5px;
    }
}

