/* 
   GenialFlow - Space Premium Enterprise Design System
   Inspirado em Linear, Stripe e Vercel.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
    /* Paleta Oficial */
    --bg-main: #0B0F1A;
    --bg-sidebar: #0E1626;
    --bg-card: #141C2F;
    --bg-card-hover: #1B2540;
    --primary: #4F7CFF;
    --primary-hover: #6A91FF;
    --secondary: #7B61FF;
    --status-active: #6EDC8C;
    --status-active-bg: rgba(110, 220, 140, 0.15);
    --text-main: #E8ECF8;
    --text-muted: #9CA7C7;
    --header-gradient: linear-gradient(135deg, rgba(79, 124, 255, 0.1), rgba(123, 97, 255, 0.1));
    --btn-gradient: linear-gradient(135deg, #4F7CFF, #7B61FF);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}
/* O fundo cinemático será gerenciado via HTML em header.php para maior controle */
/* Cosmic Sidebar Luxury Edition */
.sidebar-premium {
    width: 280px;
    background: linear-gradient(to bottom, #05070A, #0B0F1A);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    height: 100vh;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.9);
    transition: all 0.4s ease;
}
.sidebar-premium::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(to bottom, transparent, rgba(79, 124, 255, 0.3), transparent);
}
.nav-item {
    font-size: 11px;
    font-weight: 700;
    color: rgba(156, 167, 199, 0.5);
    padding: 10px 16px;
    margin: 8px 16px;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex !important;
    align-items: center !important;
    gap: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    border: 1px solid transparent;
}
.nav-item:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}
.nav-item.active {
    color: #FFFFFF;
    background: linear-gradient(90deg, rgba(79, 124, 255, 0.12), transparent);
    border-left: 3px solid #4F7CFF;
    border-radius: 4px 16px 16px 4px;
    margin-left: 0;
    padding-left: 24px;
    box-shadow: inset 10px 0 20px rgba(79, 124, 255, 0.05);
}
.nav-icon-container {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.nav-item.active .nav-icon-container {
    background: rgba(79, 124, 255, 0.15);
    border-color: rgba(79, 124, 255, 0.4);
    box-shadow: 0 0 15px rgba(79, 124, 255, 0.2);
}
.nav-item svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    stroke-width: 2.2;
    transition: all 0.3s ease;
}
.nav-item.active svg {
    color: #4F7CFF;
    filter: drop-shadow(0 0 8px rgba(79, 124, 255, 0.6));
}
/* Content Header */
.content-header {
    background: var(--header-gradient);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 48px;
    margin-bottom: 40px;
}
.page-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #FFFFFF;
    line-height: 1;
}
.page-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(156, 167, 199, 0.4);
    margin-top: 6px;
}
/* Bordas de Vidro HD & Glow de Acento */
.glass-stroke-blue {
    border-top: 4px solid #4F7CFF;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 124, 255, 0.08);
}
.glass-stroke-purple {
    border-top: 4px solid #7B61FF;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(123, 97, 255, 0.08);
}
.glass-stroke-emerald {
    border-top: 4px solid #10B981;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.08);
}
.glass-stroke-rose {
    border-top: 4px solid #F43F5E;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(244, 63, 94, 0.08);
}
.glass-stroke-blue:hover {
    box-shadow: 0 20px 60px rgba(79, 124, 255, 0.2);
}
.glass-stroke-purple:hover {
    box-shadow: 0 20px 60px rgba(123, 97, 255, 0.2);
}
.glass-stroke-emerald:hover {
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}
.glass-stroke-rose:hover {
    box-shadow: 0 20px 60px rgba(244, 63, 94, 0.2);
}
.text-gradient-primary {
    background: linear-gradient(135deg, #4F7CFF 0%, #7B61FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(79, 124, 255, 0.3));
}
.text-gradient-rose {
    background: linear-gradient(135deg, #FF4F81 0%, #F43F5E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.3));
}
/* High Contrast Vibrant Cards */
.vibrant-card {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.98), rgba(30, 40, 70, 0.92));
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}
.vibrant-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}
.vibrant-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}
/* Cosmic Pipeline Stages Colors */
.kanban-yellow {
    --stage-color: #FFB800;
    --stage-glow: rgba(255, 184, 0, 0.15);
}
.kanban-magenta {
    --stage-color: #FF008A;
    --stage-glow: rgba(255, 0, 138, 0.15);
}
.kanban-orange {
    --stage-color: #FF7A00;
    --stage-glow: rgba(255, 122, 0, 0.15);
}
.kanban-purple {
    --stage-color: #7B61FF;
    --stage-glow: rgba(123, 97, 255, 0.15);
}
.kanban-emerald {
    --stage-color: #10B981;
    --stage-glow: rgba(16, 185, 129, 0.15);
}
.kanban-rose {
    --stage-color: #F43F5E;
    --stage-glow: rgba(244, 63, 94, 0.15);
}
.kanban-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 32px;
    align-items: flex-start;
    padding-bottom: 30px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
}
.overflow-x-auto {
    overflow-x: auto !important;
}
.kanban-column-premium {
    width: 320px !important;
    min-width: 320px !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.kanban-column-premium.bg-white\/5 {
    background: rgba(255, 255, 255, 0.05) !important;
}
.kanban-column-premium.border-primary\/20 {
    border-color: rgba(79, 124, 255, 0.2) !important;
}
.kanban-header-indicator {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--stage-glow);
    color: var(--stage-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.kanban-card-elite {
    background: linear-gradient(135deg, rgba(20, 28, 47, 0.95), rgba(15, 20, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--stage-color);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}
.kanban-card-elite:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--stage-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px var(--stage-glow);
}
.kanban-card-elite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--stage-glow), transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}
.lead-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.lead-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--stage-glow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--stage-color);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}
/* Stage Stepper (eKyte Style HD) */
.stage-stepper-container {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 48px;
    margin-bottom: 50px;
    overflow-x: auto;
    scrollbar-width: none;
}
.stage-pill {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 160px;
    position: relative;
    transition: all 0.4s ease;
    margin-right: 25px;
}
.stage-pill::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.1);
    font-weight: 900;
}
.stage-pill:last-child::after {
    display: none;
}
.stage-pill.active {
    background: linear-gradient(135deg, var(--stage-color), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px var(--stage-glow);
}
.stage-pill.active span:first-child {
    color: rgba(255, 255, 255, 0.7);
}
.stage-pill.active span:last-child {
    color: #FFFFFF;
}
.stage-pill span:first-child {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}
.stage-pill span:last-child {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
}
/* Vibrant Card Elements */
.vibrant-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.vibrant-icon-box::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: inherit;
    opacity: 0.15;
    filter: blur(10px);
}
/* Card System */
.premium-card {
    background: rgba(20, 28, 47, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.premium-card:hover {
    border: 1px solid rgba(79, 124, 255, 0.4);
    box-shadow: 0 0 25px rgba(79, 124, 255, 0.15);
}
/* Botões Neon e Premium */
.btn-neon,
.btn-premium {
    background: linear-gradient(135deg, #4F7CFF, #7B61FF);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(79, 124, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.btn-neon:hover,
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(79, 124, 255, 0.4);
}
/* Badges with Glow */
.badge-active {
    background: rgba(110, 220, 140, 0.1);
    color: var(--status-active);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(110, 220, 140, 0.2);
    box-shadow: 0 0 15px rgba(110, 220, 140, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-critical {
    background: rgba(244, 63, 94, 0.1);
    color: #F43F5E;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(244, 63, 94, 0.2);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Kanban System - Cleaned up duplication */
/* Table Refinement */
.premium-table {
    width: 100%;
    border-collapse: collapse;
}
.premium-table thead th {
    padding: 12px 24px;
    color: rgba(156, 167, 199, 0.4);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: left;
}
.premium-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}
.premium-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.premium-table td {
    padding: 18px 24px;
    color: #E8ECF8;
    vertical-align: middle;
}
.btn-table-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4F7CFF;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    background: rgba(79, 124, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(79, 124, 255, 0.2);
    transition: all 0.3s ease;
}
.btn-table-action:hover {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 0 15px rgba(79, 124, 255, 0.4);
    transform: translateY(-2px);
}
/* Custom Scrollbar Utility */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 124, 255, 0.5);
}
/* Scrollbar Superior Específica */
.custom-scrollbar-top::-webkit-scrollbar {
    height: 8px;
}
.custom-scrollbar-top::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}
.custom-scrollbar-top::-webkit-scrollbar-thumb {
    background: rgba(79, 124, 255, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}
/* Shimmer Animation */
@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}
.animate-shimmer {
    animation: shimmer 2s infinite;
}
/* Form Group Hover Focus */
.group:focus-within label {
    color: var(--primary) !important;
    transition: color 0.3s ease;
}
/* Utilitários de Texto de Alta Resiliência */
.briefing-text {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    /* Força quebra até em links gigantes */
    display: block !important;
    width: 100% !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    overflow: visible !important;
}
.whitespace-normal {
    white-space: normal !important;
}
/* --- NOVAS ANIMAÇÕES ESPACIAIS --- */
@keyframes float-cosmic {
    0%,
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-30px) scale(1.1) rotate(5deg);
        opacity: 0.5;
    }
    66% {
        transform: translateY(20px) scale(0.9) rotate(-5deg);
        opacity: 0.4;
    }
}
@keyframes blob-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: blur(120px);
    }
    50% {
        transform: scale(1.2);
        filter: blur(150px);
    }
}
@keyframes fade-up-premium {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.animate-float-slow {
    animation: float-cosmic 15s ease-in-out infinite;
}
.animate-float-fast {
    animation: float-cosmic 10s ease-in-out infinite reverse;
}
.animate-pulse-slow {
    animation: blob-pulse 12s ease-in-out infinite;
}
.animate-fade-up {
    animation: fade-up-premium 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
/* --- GLASSMORPHISM LUXURY EDITION --- */
.glass-card {
    background: rgba(20, 28, 47, 0.4) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}
.glass-input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}
.glass-input:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(79, 124, 255, 0.8) !important;
    box-shadow: 0 0 30px rgba(79, 124, 255, 0.25) !important;
    transform: translateY(-2px);
}
.text-glow-primary {
    text-shadow: 0 0 15px rgba(79, 124, 255, 0.4);
}