/* ==================================================================================
   FLUID LOGISTICS DESIGN SYSTEM (Override)
   ================================================================================== */

:root {
    /* Variáveis - FLUID GEOMETRY */
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 32px;
    --border-radius-pill: 50px;

    /* Profundidade Fluid */
    --shadow-fluid: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-fluid-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Cores Intuitivas (Reafirmadas) */
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --info-color: #3498db;

    /* Contraste de Texto Melhorado */
    --text-primary: #1a1a1a;
    --text-secondary: #555555;

    /* Transições */
    --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-theme {
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --shadow-fluid: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-fluid-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* ==================================================================================
   COMPONENT OVERRIDES
   ================================================================================== */

/* Cards mais arredondados e profundos */
.card,
.card-dashboard {
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-fluid) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s ease !important;
}

.card:hover,
.card-dashboard:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-fluid-hover) !important;
}

.dark-theme .card,
.dark-theme .card-dashboard {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Botões em Pílula (Pill Shape) */
.btn {
    border-radius: var(--border-radius-pill) !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s var(--transition-bounce) !important;
}

.btn:active {
    transform: scale(0.95);
}

/* Inputs Fluidos */
.form-control {
    border-radius: 12px !important;
    /* Arredondado mas não pílula */
    padding: 12px 16px !important;
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(255, 109, 0, 0.15) !important;
    border-color: var(--primary-orange) !important;
    transform: translateY(-1px);
}

/* ==================================================================================
   DASHBOARD SPECIFIC
   ================================================================================== */

/* Ícones de KPI com fundo circular */
.kpi-icon-circle {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    font-size: 22px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Títulos mais fortes */
.card-dashboard h2 {
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

.card-dashboard .card-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem !important;
    opacity: 0.8;
}

/* Modal Geometry */
.modal,
.swal2-popup {
    border-radius: 24px !important;
}

/* Sidebar Active Item Square */
.menu-item.active {
    border-radius: 0 !important;
    border-left: 4px solid var(--primary-orange) !important;
}

/* ==================================================================================
   LEAD MANAGEMENT GRID SYSTEM
   ================================================================================== */

.leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.lead-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-fluid);
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-orange);
    opacity: 0.8;
}

.lead-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-fluid-hover);
    border-color: rgba(255, 109, 0, 0.2);
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.lead-company {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.lead-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 109, 0, 0.1);
    color: var(--primary-orange);
    font-weight: 700;
    text-transform: uppercase;
}

.lead-body {
    flex-grow: 1;
    margin-bottom: 25px;
}

.lead-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.lead-info-row i {
    color: var(--primary-orange);
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.lead-footer {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.btn-lead-action {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 50px;
    /* Pill Shape */
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-approve {
    background: var(--success-color);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-approve:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-reject:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.lead-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.lead-empty-img {
    width: 150px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed #25D366;
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.1);
}