/* Reset e variáveis CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #c18e4c;
    --dark-gold: #3c2708;
    --black-primary: #0a0a0a;
    --black-secondary: #1a1a1a;
    --black-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--black-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout Principal */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--black-secondary) 0%, var(--dark-gold) 100%);
    box-shadow: var(--shadow-lg);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-gold), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    margin: 0.5rem 0;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
}

.nav-item a:hover,
.nav-item.active a {
    background: linear-gradient(90deg, var(--primary-gold), transparent);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background-color: var(--black-primary);
    min-height: 100vh;
}

.main-header {
    background: var(--black-secondary);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-gold), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notifications i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.notifications:hover i {
    color: var(--primary-gold);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
}

/* Logout Button */
.btn-logout {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-logout:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border-color: var(--danger);
    transform: scale(1.05);
}

/* Content Sections */
.content-section {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Loading States */
.dashboard-loading .metric-value {
    opacity: 0.7;
    transform: scale(0.98);
}

.dashboard-loaded .metric-value {
    opacity: 1;
    transform: scale(1);
}

/* Prevent layout shifts during animations */
.metrics-cards {
    contain: layout style;
}

.metric-card {
    contain: layout style;
}

.metric-info {
    contain: layout;
}

/* Smooth hover effects for metric cards */
.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(193, 142, 76, 0.2);
}

/* Optimize animations */
.metric-value,
.metric-change {
    will-change: contents;
    contain: style;
}

/* Metrics Cards */
.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: linear-gradient(135deg, var(--black-secondary), var(--black-tertiary));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    contain: layout style;
    will-change: transform;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(193, 142, 76, 0.2);
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.metric-icon {
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon i {
    font-size: 1.8rem;
    color: white;
}

.metric-info h3 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 0.5rem;
    min-height: 2.4rem;
    line-height: 1.2;
    vertical-align: top;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    transition: all 0.2s ease;
}

.metric-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.metric-change.positive {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.metric-change.negative {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.chart-container.large {
    grid-column: 1 / -1;
}

.chart-container h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container canvas {
    max-height: 300px;
}

/* Metrics Summary */
.metrics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--black-tertiary);
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metric-number {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.hot-leads {
    color: var(--danger);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 600;
}

/* Filter Controls */
.filter-controls select {
    background: var(--black-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Pipeline Container */
.pipeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pipeline-stage {
    background: var(--black-secondary);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
}

.pipeline-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 15px 15px 0 0;
}

.pipeline-stage h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stage-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stage-count {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pipeline-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pipeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--black-tertiary);
    border-radius: 8px;
    font-size: 0.9rem;
}

.sentiment {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sentiment.positive {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.sentiment.neutral {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.sentiment.negative {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

/* Chat Container */
.chat-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 600px;
    background: var(--black-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-sidebar {
    background: var(--black-tertiary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
}

.chat-sidebar h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.chat-item:hover,
.chat-item.active {
    background: var(--black-secondary);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.chat-name {
    font-weight: 600;
    color: var(--text-primary);
}

.chat-last-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.chat-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.chat-status.online {
    background: var(--success);
}

.chat-status.away {
    background: var(--warning);
}

.chat-main {
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-status-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.chat-actions {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message.received .message-content {
    background: var(--black-tertiary);
    color: var(--text-primary);
}

.message.sent .message-content {
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    color: white;
}

.message-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    align-self: flex-end;
}

.chat-input {
    display: flex;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    background: var(--black-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.btn-send {
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send:hover {
    transform: scale(1.05);
}

/* Table Styles */
.table-container {
    background: var(--black-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--black-tertiary);
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table tr:hover {
    background: rgba(193, 142, 76, 0.1);
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.hot {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

.status-badge.warm {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.status-badge.cold {
    background: rgba(23, 162, 184, 0.2);
    color: var(--info);
}

.score-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.score-badge.high {
    background: linear-gradient(45deg, var(--success), #20c997);
    color: white;
}

.score-badge.medium {
    background: linear-gradient(45deg, var(--warning), #fd7e14);
    color: white;
}

.score-badge.low {
    background: linear-gradient(45deg, var(--danger), #e83e8c);
    color: white;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 142, 76, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .pipeline-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-nav span {
        display: none;
    }
    
    .logo h2 {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .metrics-cards {
        grid-template-columns: 1fr;
    }
    
    .pipeline-container {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar {
        display: none;
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}

/* Dispatcher Section */
.dispatcher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.dispatcher-form {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.dispatcher-form h3 {
    color: var(--primary-gold);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--black-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    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-gold);
    box-shadow: 0 0 0 2px rgba(193, 142, 76, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.campaigns-list {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.campaigns-list h3 {
    color: var(--primary-gold);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.campaign-item {
    background: var(--black-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-gold);
}

.campaign-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.campaign-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.campaign-status {
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.campaign-status.active {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.campaign-status.scheduled {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.campaign-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.campaign-stats span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Ranking Section */
.ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.ranking-podium {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 1rem;
    min-height: 350px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.podium-item.first {
    order: 2;
    margin-bottom: 0;
}

.podium-item.second {
    order: 1;
    margin-bottom: 50px;
}

.podium-item.third {
    order: 3;
    margin-bottom: 80px;
}

.podium-crown {
    position: absolute;
    top: -40px;
    color: var(--primary-gold);
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.podium-avatar {
    position: relative;
    margin-bottom: 1rem;
}

.podium-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
}

.podium-position {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.podium-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.podium-sales {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.podium-progress {
    width: 100px;
    height: 8px;
    background: var(--black-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    border-radius: 4px;
    transition: width 2s ease;
}

.ranking-table {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.ranking-table h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.rank-1 {
    background: rgba(255, 215, 0, 0.1);
}

.rank-2 {
    background: rgba(192, 192, 192, 0.1);
}

.rank-3 {
    background: rgba(205, 127, 50, 0.1);
}

.achievement {
    color: var(--success);
    font-weight: 600;
}

.points {
    color: var(--primary-gold);
    font-weight: 600;
}

/* Gamification Section */
.gamification-section {
    margin-top: 3rem;
}

.gamification-section h3 {
    color: var(--primary-gold);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(193, 142, 76, 0.2);
}

.achievement-card i {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    display: block;
}

.achievement-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.achievement-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.achievement-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.achievement-badge.earned {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.achievement-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

/* Map Section */
.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.map-visualization {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    height: 500px;
}

.leads-map {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--black-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.map-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.map-sidebar {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.map-sidebar h3 {
    color: var(--primary-gold);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.region-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.region-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--black-tertiary);
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
}

.region-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.region-leads {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.region-value {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.heat-map-legend h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.legend-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legend-item {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.legend-item.low {
    background: rgba(23, 162, 184, 0.2);
    color: var(--info);
}

.legend-item.medium {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.legend-item.high {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger);
}

/* IA Section */
.ia-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.ia-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.ia-features {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.ia-features h3 {
    color: var(--primary-gold);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--black-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(193, 142, 76, 0.2);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.feature-status.active {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.ia-chat {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.ia-chat h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.ia-chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.ia-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--black-tertiary);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.ia-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ia-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ia-content {
    flex: 1;
}

.ia-content p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: rgba(193, 142, 76, 0.1);
    padding: 1rem;
    border-radius: 15px;
    line-height: 1.5;
}

.ia-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.ia-input {
    display: flex;
    gap: 1rem;
}

.ia-input input {
    flex: 1;
    background: var(--black-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.ia-input input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.btn-ia-send {
    background: linear-gradient(45deg, var(--primary-gold), var(--dark-gold));
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ia-send:hover {
    transform: scale(1.05);
}

.ia-analytics {
    margin-top: 3rem;
}

.ia-analytics h3 {
    color: var(--primary-gold);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.ia-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ia-stat {
    background: var(--black-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    border-top: 4px solid var(--primary-gold);
}

.ia-stat h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ia-number {
    display: block;
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ia-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 1200px) {
    .dispatcher-grid,
    .ranking-grid,
    .ia-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .podium-item.second,
    .podium-item.third {
        margin-bottom: 20px;
    }
    
    .achievements-grid,
    .ia-stats-grid {
        grid-template-columns: 1fr;
    }
}
