/* Custom styling for the lead management system */

:root {
    --primary-green: #023534;
    --secondary-brown: #dfb371;
    --dark-green: #011f1e;
    --light-brown: #e6c28e;
    --medium-green: #046a67;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text-on-dark: var(--secondary-brown);
    --text-highlight: var(--white);
    --text-on-light: var(--primary-green);
}

/* General themes and styles */
.bg-primary, .btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.bg-secondary, .btn-secondary {
    background-color: var(--secondary-brown) !important;
    border-color: var(--secondary-brown) !important;
    color: var(--text-on-light) !important;
}

.btn-secondary:hover {
    background-color: var(--light-brown) !important;
}

.bg-info, .btn-info {
    background-color: var(--medium-green) !important;
    border-color: var(--medium-green) !important;
    color: var(--text-on-dark) !important;
}

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

.text-info {
    color: var(--medium-green) !important;
}

.navbar-dark {
    background-color: var(--primary-green) !important;
}

.card-header {
    background-color: var(--primary-green) !important;
    color: var(--text-on-dark) !important;
}

.footer {
    background-color: var(--primary-green) !important;
}

/* Status badge colors */
.status-badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.status-Novo {
    background-color: var(--medium-green);
    color: var(--text-on-dark);
}

.status-Em-contato {
    background-color: var(--secondary-brown);
    color: var(--text-on-light);
}

.status-Proposta-enviada {
    background-color: var(--light-brown);
    color: var(--text-on-light);
}

.status-Proposta-aceita {
    background-color: #2c7c4d; /* Green variant */
    color: var(--text-on-dark);
}

.status-Proposta-recusada {
    background-color: #8B0000; /* Deep red */
    color: var(--text-on-dark);
}

.status-Cliente {
    background-color: var(--secondary-brown);
    color: var(--text-on-light);
}

.status-Arquivado {
    background-color: #495057; /* Darker gray */
    color: var(--text-on-dark);
}

/* Dashboard styling */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-green) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--secondary-brown) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--medium-green) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--light-brown) !important;
}

/* WhatsApp button */
.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
}

/* Form elements styling */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(2, 53, 52, 0.25);
}

/* Note styling */
.note-card {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-brown);
}

.note-container {
    max-height: 500px;
    overflow-y: auto;
}

.note-header {
    font-size: 0.875rem;
    color: var(--secondary-brown);
}

/* Timeline styling */
.timeline-item {
    position: relative;
}

.timeline-marker {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer sticky at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--white); /* Fundo branco */
    color: var(--text-on-light);
    font-family: 'Poppins', sans-serif;
}

.content {
    flex: 1;
}

/* Ajustes para melhor legibilidade e estética */
.card {
    background-color: var(--white); /* Cards com fundo branco */
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.card-feature {
    background-color: var(--primary-green);
    border: 2px solid var(--secondary-brown);
    color: var(--text-on-dark);
}

.card-body {
    color: var(--text-on-light);
    padding: 1.5rem;
}

.card-feature .card-body {
    color: var(--text-on-dark);
}

.section-dark {
    background-color: var(--primary-green);
    color: var(--text-on-dark);
    padding: 3rem 0;
    position: relative;
}

.section-light {
    background-color: var(--off-white);
    color: var(--text-on-light);
    padding: 3rem 0;
}

/* Logo styling */
.logo-container {
    max-width: 180px;
    margin: 0 auto;
}

.logo-container img {
    width: 100%;
    height: auto;
}

/* UX Enhancements */
.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-brown);
    box-shadow: 0 0 0 0.25rem rgba(223, 179, 113, 0.25);
}

.form-control.styled, .form-select.styled {
    background-color: var(--white);
    color: var(--text-on-light);
    border: 1px solid var(--secondary-brown);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer {
    margin-top: auto;
}

/* Login page styling */
.login-container {
    max-width: 400px;
    margin: 3rem auto;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Button styling and effects */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white) !important;
    border: 2px solid var(--primary-green);
}

.btn-secondary {
    background-color: var(--secondary-brown);
    color: var(--white) !important;
    border: 2px solid var(--secondary-brown);
}

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

.btn-white {
    background-color: var(--white);
    color: var(--primary-green) !important;
    border: 2px solid var(--primary-green);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--dark-green) !important;
    border-color: var(--dark-green) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(2, 53, 52, 0.4);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--light-brown) !important;
    border-color: var(--light-brown) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(223, 179, 113, 0.4);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(223, 179, 113, 0.3);
    border-color: var(--secondary-brown);
}

/* Public form styling */
.public-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Table styling */
.table thead th {
    background-color: #ffffff !important;
    color: #023534 !important;
    border-color: #e0e0e0;
}

/* Hero section and other UI components */
.hero-section {
    position: relative;
    padding: 5rem 0;
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-on-dark);
    max-width: 700px;
    margin: 0 auto;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.accent-text {
    color: var(--secondary-brown);
    font-weight: 600;
}

.accent-bg {
    background-color: var(--secondary-brown);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-brown);
    margin: 1.5rem 0;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Budget field styling */
#budget-field-wrapper {
    display: block !important;
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Modern UI elements for lead page */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--secondary-brown);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Empty state styling */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state i {
    color: var(--secondary-brown);
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-green);
}

/* Cards with left borders */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-green) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--secondary-brown) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--medium-green) !important;
}

.border-left-warning {
    border-left: 0.25rem solid #ffc107 !important;
}

/* Stats cards */
.card .text-xs {
    font-size: 0.7rem;
    letter-spacing: 0.05rem;
}

.text-gray-300 {
    color: #dddddd !important;
}

.text-gray-800 {
    color: #333333 !important;
}

/* Improved table styling */
.table-hover tbody tr:hover {
    background-color: rgba(223, 179, 113, 0.05);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.03rem;
    background-color: #ffffff !important;
    color: #023534 !important;
}

.table td {
    vertical-align: middle;
    background-color: #ffffff !important;
    color: #023534 !important;
}

/* Badge sizes & colors */
.badge.status-Novo {
    background-color: var(--medium-green);
    color: white;
}

.badge.status-Em-Atendimento {
    background-color: #2196F3;
    color: white;
}

.badge.status-Em-Negociação {
    background-color: var(--secondary-brown);
    color: var(--primary-green);
}

.badge.status-Fechado {
    background-color: #4CAF50;
    color: white;
}

.badge.status-Recusado {
    background-color: #F44336;
    color: white;
}

.badge.status-Arquivado {
    background-color: #607D8B;
    color: white;
}

/* Lead detail page UI enhancements */
.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.detail-label {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.timeline-marker {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 50%;
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
}

.pipeline-active {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--primary-green);
    background-color: rgba(2, 53, 52, 0.1);
    border-color: var(--primary-green) !important;
}

.pipeline-completed {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50 !important;
}

.timeline {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 13px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.note-item {
    position: relative;
}

.note-card {
    transition: all 0.2s ease;
}

.note-card:hover {
    transform: translateY(-2px);
}

.timeline-notes::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

/* Modern Dashboard Layout Styles */
.dashboard-stat-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

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

.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    background-color: rgba(2, 53, 52, 0.1);
    color: var(--primary-green);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-card-title {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0;
}

.dashboard-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Content area enhancements */
.page-header {
    margin-bottom: 1.5rem;
}

.page-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.page-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1rem;
    background-color: var(--primary-green);
    color: white;
}

.breadcrumb-wrapper {
    margin-bottom: 0.75rem;
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-brown);
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Button Styles */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: #01201f;
    border-color: #01201f;
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

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

/* Responsive adjustments */
@media (max-width: 767px) {
    .dashboard-stat-card {
        margin-bottom: 1rem;
    }
    
    .content-area {
        padding: 20px 15px;
    }
}