:root {
    /* Color Palette - Diego Kamui Identity */
    --bg-main: #0a0a0c;
    --bg-sidebar: #111e26;
    /* Deep dark blue/teal matching site depth */
    --bg-header: rgba(13, 20, 26, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);

    --primary: #f26522;
    /* Vibrant Orange from Logo */
    --primary-hover: #d4541a;
    --secondary: #64748b;

    --accent-gradient: linear-gradient(135deg, #f26522 0%, #ed1c24 100%);
    --warm-gradient: linear-gradient(135deg, #f7941d 0%, #f26522 100%);

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-highlight: #ffffff;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

/* Screen Transitions */
.screen {
    display: none;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Login Screen */
#login-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a24 0%, #0a0a0c 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-highlight);
}

.logo span {
    display: flex;
    align-items: center;
    line-height: 1;
    margin-top: 2px;
    /* Ajuste fino visual para alinhar com o peso do ícone */
}

.login-header .logo {
    justify-content: center;
    margin-bottom: 24px;
    font-size: 26px;
}

.logo-icon,
.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(242, 101, 34, 0.4));
}

.highlight {
    color: var(--primary);
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-highlight);
}

.login-header p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Forms */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: white;
    outline: none;
    transition: var(--transition);
    font-size: 14px;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--primary);
}

.input-wrapper input {
    padding-left: 40px;
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

.btn-primary i {
    width: 18px;
    height: 18px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.5);
}

.link-secondary {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    color: var(--secondary);
    text-decoration: none;
}

/* Tasks List Refined */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: var(--transition);
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.task-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.task-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-title {
    font-weight: 500;
    color: var(--text-highlight);
}

.task-title.completed {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.task-lead-name {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-meta i {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.task-priority {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.task-priority.high {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

.task-priority.med {
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.task-priority.low {
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
}

/* Main Layout */
#main-layout {
    /* Removido display:flex fixo para respeitar .screen.active */
    width: 100%;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    flex-shrink: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    background: #0f172a !important;
    /* Cor sólida ultra-escura para contraste */
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
    /* Acima do conteúdo, abaixo do modal */
    overflow-x: hidden;
    position: relative;
}

.sidebar-header {
    margin-bottom: 36px;
    padding: 0 16px;
    /* Alinhado com os nav-items */
    display: flex;
    align-items: center;
}

.nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
    text-align: left;
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item span {
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    /* Garante alinhamento vertical perfeito com o ícone */
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-highlight);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    font-weight: 600;
}

/* Custom Nav Item highlights */
.nav-item[data-view="won"].active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.nav-item[data-view="lost"].active {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.nav-item.logout {
    margin-top: 20px;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: radial-gradient(circle at top right, #111114 0%, #0a0a0c 100%);
}

.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 1000;
    /* Garante que o header e o sino fiquem acima de tudo */
}

.header-search {
    position: relative;
    width: 300px;
    display: flex;
    align-items: center;
}

.header-search i {
    position: absolute;
    left: 14px;
    z-index: 10;
    width: 18px;
    height: 18px;
    color: var(--secondary);
    pointer-events: none;
}

.header-search input {
    padding: 10px 12px 10px 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borda sutil para alinhar melhor */
    border-radius: var(--radius-md);
    font-size: 14px;
    width: 100%;
    transition: var(--transition);
}

.header-search input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    outline: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-actions .btn-primary {
    width: auto;
    padding: 0 20px;
    height: 40px;
    font-size: 14px;
    margin-top: 0;
    border-radius: var(--radius-md);
}

.btn-secondary.notification {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary.notification:hover {
    background: rgba(255, 255, 255, 0.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111e26;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Notification Dropdown - Diego, agora sim com o z-index corrigido no header pai */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 360px;
    background: #111e26 !important;
    /* Cor sólida do sidebar conforme sua sugestão */
    border: 2px solid #2d333b;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 1);
    display: none;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    backdrop-filter: none !important;
}

.notif-dropdown.active {
    display: flex;
}

.notif-header {
    background: #111e26;
    padding: 16px 20px;
    border-bottom: 1px solid #2d333b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-highlight);
    margin: 0;
}

.notif-count {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    background: rgba(242, 101, 34, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.notif-list {
    background: #111e26;
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    background: #111e26;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.notif-item:hover {
    background: #1a2a35 !important;
}

.notif-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-highlight);
    margin-bottom: 6px;
    display: block;
}

.notif-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-footer {
    background: #111e26;
    padding: 15px;
    text-align: center;
    border-top: 2px solid #2d333b;
}

.notif-footer button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.notif-footer button:hover {
    text-decoration: underline;
}

/* Views */
.view {
    display: none;
    padding: 32px;
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
    position: relative;
}

#view-kanban {
    padding: 0;
    overflow: hidden;
    display: none;
    /* Flex when active */
    flex-direction: column;
}

#view-kanban.active {
    display: flex !important;
}

#view-kanban .view-header {
    padding: 32px 32px 0 32px;
    flex-shrink: 0;
}

.view.active {
    display: block;
}

.view-header {
    margin-bottom: 24px;
    /* Ajustado para melhor fluxo visual */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Alinha botões à base do título */
    gap: 24px;
}

.view-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    /* Alinhamento óptico com o texto do H1 */
}

.view-header h1 {
    font-size: 32px;
    /* Título um pouco mais imponente */
    font-weight: 800;
    color: var(--text-highlight);
    letter-spacing: -1px;
    margin: 0;
}

.view-header p {
    color: var(--text-muted);
    margin-top: 4px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-data h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-trend {
    font-size: 12px;
    font-weight: 500;
}

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.negative {
    color: var(--danger);
}

/* Custom Form Elements */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

option {
    background-color: var(--bg-sidebar);
    color: white;
}

/* Custom Checkbox */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    padding: 0;
    /* Override common pad */
}

input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Filter Chips Polishing */
.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}

.filter-chip.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
}

.chart-container,
.recent-leads {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.chart-container h3,
.recent-leads h3 {
    font-size: 18px;
    margin-bottom: 24px;
}

.bar-chart-mock {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    padding-bottom: 30px;
    margin-top: 10px;
}

.bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 8px;
}

.bar {
    width: 100%;
    max-width: 40px;
    background: var(--accent-gradient);
    border-radius: 6px 6px 2px 2px;
    position: relative;
    transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
}

.bar-value {
    position: absolute;
    top: -22px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.bar-label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Leads Table View */
.leads-table-container {
    padding: 20px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leads-table th {
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
}

.leads-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leads-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.rotting-row {
    position: relative;
    background: rgba(239, 68, 68, 0.02) !important;
}

.rotting-row:hover {
    background: rgba(239, 68, 68, 0.05) !important;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

/* Kanban Board */
.kanban-board {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 32px 32px 32px;
    /* Reduzi o topo para alinhar com o tÍtulo */
    align-items: stretch;
    position: relative;
}

.kanban-column {
    min-width: 300px;
    flex: 1;
    flex-shrink: 0;
    background: rgba(25, 32, 44, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease, transform 0.2s ease;
}

.kanban-column.drag-over {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.column-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.column-header h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.lead-count {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
}

.lead-cards {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

.lead-card {
    background: #1c2128;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 18px;
    /* Aumentado para mais respiro */
    margin-bottom: 16px;
    cursor: grab;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.card-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.lead-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.lead-card.rotting {
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.quick-dropzones {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 110px;
    border-radius: var(--radius-lg);
    gap: 20px;
    z-index: 2000;
}

.quick-dropzones.active {
    display: flex;
    animation: slide-up 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slide-up {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.dropzone-win,
.dropzone-lose {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    backdrop-filter: blur(20px);
}

.quick-zone.drag-over {
    transform: scale(1.02);
    border-style: solid;
    border-width: 3px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.dropzone-win {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.dropzone-win.drag-over {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--success);
}

.dropzone-lose {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.dropzone-lose.drag-over {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--danger);
}

.dropzone-win i,
.dropzone-lose i {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
}

.quick-zone span {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
}

.lead-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.lead-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.card-footer {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-highlight);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 12px;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
}

.bus-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.btn-task-shortcut {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-task-shortcut:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.btn-task-shortcut i {
    width: 14px;
    height: 14px;
}

.tag-site {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
}

.tag-mkt {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    background: #161b22;
    /* Fundo sólido para os modais */
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    scroll-behavior: smooth;
}

/* Custom scrollbar for modals and history */
.modal-content::-webkit-scrollbar,
#lead-history-list::-webkit-scrollbar {
    width: 5px;
}

.modal-content::-webkit-scrollbar-thumb,
#lead-history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
#lead-history-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-highlight);
}

.btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--primary);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.btn-danger {
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    height: 48px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

/* Ensure Save button matches height */
.modal-footer .btn-primary {
    width: auto;
    min-width: 160px;
    margin-top: 0;
    height: 48px;
    border-radius: var(--radius-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tag-selector {
    display: flex;
    gap: 12px;
}

.tag-option {
    cursor: pointer;
}

.tag-option input {
    display: none;
}

.tag-label {
    padding: 10px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.tag-option input:checked+.tag-label {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view.active {
    animation: fadeIn 0.4s ease forwards;
}

.stat-card,
.lead-card {
    /* Removendo animação que pode causar desalinhamento no transform */
    transition: var(--transition);
}