/**
 * TrueRock CRM - Estilos Principais
 */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --gray-light: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f6fa;
}

/* Layout Principal */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--secondary);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.sidebar-header i {
    color: var(--primary);
    margin-right: 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
}

.sidebar-menu li {
    margin: 2px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-menu a.active {
    border-left: 3px solid var(--primary);
}

.sidebar-menu i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
}

.menu-section {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
}

.main-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 5px;
}

.top-bar h1 {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
}

.user-info i {
    font-size: 1.5rem;
    color: var(--primary);
}

.user-info small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
}

.content-wrapper {
    flex: 1;
    padding: 25px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

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

.btn-light {
    background: white;
    color: var(--gray);
    border: 1px solid var(--gray-light);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Cards */
.section-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.section-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
}

.section-header i {
    color: var(--primary);
    margin-right: 8px;
}

.section-content {
    padding: 25px;
}

.section-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

.section-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
}

.page-description {
    color: var(--gray);
    margin-top: 5px;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:hover {
    background: #f8f9fa;
}

.table-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: var(--gray-light);
    color: var(--gray);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.novo {
    background: #d4edda;
    color: #155724;
}

.status-badge.quente {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.frio {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge.fechado {
    background: #d4edda;
    color: #155724;
}

.status-badge.livre {
    background: #fff3cd;
    color: #856404;
}

/* Temp Badges */
.temp-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: capitalize;
}

.temp-badge.novo { background: #e3f2fd; color: #1976d2; }
.temp-badge.quente { background: #ffebee; color: #d32f2f; }
.temp-badge.morno { background: #fff3e0; color: #f57c00; }
.temp-badge.frio { background: #eceff1; color: #455a64; }
.temp-badge.fechado { background: #e8f5e9; color: #388e3c; }

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--secondary);
}

.form-group.required label::after {
    content: ' *';
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-section {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.form-section h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.form-section h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Input Group */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    font-size: 1rem;
    line-height: 1.5;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Dashboard */
.dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 2px;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.stat-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.alert-section {
    border-left: 4px solid var(--warning);
}

/* Pipeline */
.pipeline-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.pipeline-column {
    min-width: 280px;
    background: #f8f9fa;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 15px;
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    border-top: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.column-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.column-header h4 {
    flex: 1;
    font-size: 0.95rem;
    color: var(--secondary);
}

.column-count {
    background: var(--gray-light);
    color: var(--gray);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.column-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.lead-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

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

.lead-card.dragging {
    opacity: 0.5;
}

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

.lead-header h5 {
    font-size: 0.95rem;
    color: var(--secondary);
    flex: 1;
}

.lead-temperature {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.lead-info {
    margin-bottom: 10px;
}

.lead-info p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 3px 0;
}

.lead-info i {
    width: 16px;
    color: var(--primary);
}

.lead-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--gray-light);
    font-size: 0.8rem;
}

.lead-owner {
    color: var(--gray);
}

.lead-last-contact {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-light);
    font-size: 0.75rem;
    color: var(--gray);
}

.lead-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.empty-column {
    text-align: center;
    padding: 30px 15px;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Leads Grid */
.leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.lead-free {
    border: 2px solid var(--warning);
}

.lead-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lead-card-header h4 {
    color: var(--secondary);
}

.lead-card-body {
    margin-bottom: 15px;
}

.lead-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

.lead-info-row:last-child {
    border-bottom: none;
}

.lead-info-row i {
    width: 20px;
    color: var(--primary);
}

.lead-card-footer {
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

/* Lead Detail */
.lead-detail-page {
    max-width: 1200px;
}

.lead-header-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.lead-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.lead-title h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.lead-status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
    margin-right: 10px;
}

.lead-actions-header {
    display: flex;
    gap: 8px;
}

.lead-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: var(--secondary);
    font-size: 0.95rem;
}

.info-item i {
    color: var(--primary);
    margin-right: 5px;
}

.temperature-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.lead-address,
.lead-observations {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.lead-address h4,
.lead-observations h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.lead-address h4 i,
.lead-observations h4 i {
    color: var(--primary);
    margin-right: 8px;
}

.lead-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Interactions */
.interactions-list {
    max-height: 500px;
    overflow-y: auto;
}

.interaction-item {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.interaction-item:last-child {
    border-bottom: none;
}

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

.interaction-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    background: #e3f2fd;
    color: #1976d2;
}

.interaction-type.ligacao { background: #e8f5e9; color: #388e3c; }
.interaction-type.whatsapp { background: #e0f2f1; color: #00796b; }
.interaction-type.email { background: #fff3e0; color: #f57c00; }
.interaction-type.reuniao { background: #f3e5f5; color: #7b1fa2; }

.interaction-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.interaction-user {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.interaction-content {
    margin-bottom: 10px;
}

.interaction-content p {
    color: #555;
    line-height: 1.6;
}

.interaction-changes {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.change-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    color: var(--gray);
}

.interaction-followup {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.interaction-release {
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.release-reason {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #856404;
}

.new-interaction-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--gray-light);
}

.new-interaction-form h4 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.form-checks {
    margin: 15px 0;
}

.checkbox-label.highlight {
    background: #fff3cd;
    padding: 10px;
    border-radius: var(--radius-sm);
    color: #856404;
}

/* Transfers Log */
.transfers-list {
    max-height: 400px;
    overflow-y: auto;
}

.transfer-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.transfer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    color: var(--gray);
    flex-shrink: 0;
}

.transfer-item.captura .transfer-icon { background: #d4edda; color: #155724; }
.transfer-item.liberacao .transfer-icon { background: #fff3cd; color: #856404; }
.transfer-item.expiracao .transfer-icon { background: #f8d7da; color: #721c24; }

.transfer-content {
    flex: 1;
}

.transfer-title {
    font-weight: 600;
    color: var(--secondary);
    text-transform: capitalize;
}

.transfer-details {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 4px 0;
}

.transfer-reason {
    font-size: 0.85rem;
    color: #555;
    margin: 4px 0;
}

.transfer-date {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Users */
.profile-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    text-transform: capitalize;
}

.profile-badge.manager {
    background: #e3f2fd;
    color: #1976d2;
}

.profile-badge.agent {
    background: #e8f5e9;
    color: #388e3c;
}

.profile-badge.indicator {
    background: #f3e5f5;
    color: #7b1fa2;
}

.table tr.inactive {
    opacity: 0.6;
}

.actions {
    display: flex;
    gap: 5px;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-logo {
    text-align: center;
    padding: 35px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.auth-logo i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.auth-logo h1 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.auth-logo p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.auth-form {
    padding: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.85rem;
}

.auth-form input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    line-height: 1.5;
    transition: var(--transition);
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.auth-form input::placeholder {
    color: #aaa;
    font-size: 0.95rem;
}

.form-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 10px;
}

.form-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
    font-size: 0.85rem;
}

/* Filters */
.filters-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group.filter-search {
    flex: 2;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* Profile */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.profile-card,
.profile-edit-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar i {
    font-size: 3rem;
    color: var(--gray);
}

.profile-info h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.profile-email {
    color: var(--gray);
    margin-bottom: 10px;
}

.detail-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row label i {
    margin-right: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--gray-light);
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.page-info {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--secondary);
}

.modal-header h3 i {
    color: var(--warning);
    margin-right: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: var(--dark);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-left: 220px;
    }
    
    .pipeline-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lead-content-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .pipeline-container {
        grid-template-columns: 1fr;
    }
    
    .pipeline-column {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .leads-grid {
        grid-template-columns: 1fr;
    }
    
    .lead-info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Reports Page */
.reports-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.reports-stats-grid .stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.reports-stats-grid .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.reports-stats-grid .stat-icon.blue { background: var(--primary); }
.reports-stats-grid .stat-icon.green { background: var(--success); }
.reports-stats-grid .stat-icon.orange { background: var(--warning); }
.reports-stats-grid .stat-icon.red { background: var(--danger); }
.reports-stats-grid .stat-icon.purple { background: #9b59b6; }

.reports-stats-grid .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.reports-stats-grid .stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Reports Grid - Charts */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.reports-grid .chart-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.reports-grid .chart-card h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reports-grid .chart-card h4 i {
    color: var(--primary);
}

/* Responsive Reports */
@media (max-width: 1400px) {
    .reports-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .reports-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reports-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-stats-grid .stat-card {
        padding: 15px;
    }
    
    .reports-stats-grid .stat-value {
        font-size: 1.5rem;
    }
}

/* Print */
@media print {
    .sidebar,
    .top-bar,
    .btn,
    .alert,
    .actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .section-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =====================================================
   MELHORIAS DE CONTRASTE E LEGIBILIDADE - GLOBAL
   ===================================================== */

/* Tabelas - Contraste melhorado */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #2c3e50;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #e9ecef;
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

/* Badges com contraste */
.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-primary {
    background-color: #007bff;
    color: white;
}

/* Status badges específicos */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.novo { background: #3498db; color: white; }
.status-badge.quente { background: #e74c3c; color: white; }
.status-badge.morno { background: #f39c12; color: white; }
.status-badge.frio { background: #95a5a6; color: white; }
.status-badge.fechado { background: #27ae60; color: white; }
.status-badge.livre { background: #9b59b6; color: white; }

/* Cards destacados */
.card-highlight {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.card-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.card-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* Alerts com melhor contraste */
.alert {
    padding: 12px 15px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

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

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

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

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

/* Botões com contraste */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

/* Textos e links */
.text-muted {
    color: #6c757d;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Formulários */
.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Zebra striping para listas */
.list-group-item:nth-child(even) {
    background-color: #f8f9fa;
}

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

/* Cards de estatísticas */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Dashboard cards */
.dashboard-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.dashboard-card .card-title {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.dashboard-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Pipeline cards */
.pipeline-column {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 15px;
}

.pipeline-column-header {
    background: var(--secondary);
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: 15px;
}

.lead-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 3px solid var(--primary);
}

.lead-card.free-lead {
    border-left-color: #9b59b6;
}

.lead-card.closed-lead {
    border-left-color: #27ae60;
}

/* Melhorias para mobile */
@media (max-width: 768px) {
    .table thead th {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .table tbody td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .badge {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
}
