/* Estilo Inspirado na Interface Clean Tech / Bento Grid Minimalista */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-app: #EAEEF4;
    --bg-card: #FFFFFF;
    --bg-card-subtle: #F6F8FB;
    --bg-sidebar: #E3E8EF;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.12);
    --primary-accent: #2563EB;
    --primary-accent-light: #3B82F6;
    --primary-glow: rgba(37, 99, 235, 0.45);
    --lime-accent: #2563EB;
    --lime-accent-light: #3B82F6;
    --lime-glow: rgba(37, 99, 235, 0.45);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-app);
    background-image: 
        radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.06) 0px, transparent 40%),
        radial-gradient(at 90% 90%, rgba(191, 219, 254, 0.35) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Scrollbar refinada e discreta */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.28);
}

/* Painéis e Cards no Estilo Bento Grid */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1.5rem; /* rounded-3xl */
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.06);
    border-color: rgba(37, 99, 235, 0.5);
}

/* Card Hero com degradê sutil e toque de azul cobalto */
.hero-bento-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7FAFC 45%, rgba(191, 219, 254, 0.35) 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 1.75rem;
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.04);
}

/* Botão Principal em Electric Cobalt Blue */
.btn-pill-primary,
.btn-pill-blue,
.btn-pill-lime {
    background-color: var(--primary-accent);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 14px -2px var(--primary-glow);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill-primary:hover,
.btn-pill-blue:hover,
.btn-pill-lime:hover {
    background-color: var(--primary-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.65);
}

.btn-pill-primary:active,
.btn-pill-blue:active,
.btn-pill-lime:active {
    transform: translateY(0);
}

/* Botão Pílula Suave / Topbar Tabs */
.tab-pill {
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.tab-pill:hover {
    background: rgba(15, 23, 42, 0.09);
    color: #0F172A;
}

.tab-pill-active {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-weight: 700;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.06);
}

/* Ícones da Sidebar Lateral Estilo Rail */
.sidebar-rail {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
}

.sidebar-icon-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    transition: all 0.2s ease;
}

.sidebar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #0F172A;
    transform: scale(1.04);
}

.sidebar-icon-btn.active {
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.25);
}

/* Micro-pills ovais (como os botões Positive/Neutral/Negative da imagem) */
.capsule-pill {
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.capsule-pill-active {
    background: #FFFFFF;
    border-color: var(--primary-accent);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Colunas do Kanban */
.kanban-board-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    align-items: flex-start;
    padding-bottom: 2rem;
    width: 100%;
    scrollbar-width: thin;
}

.kanban-column-wrapper {
    flex: 0 0 325px;
    width: 325px;
    min-width: 325px;
    background: #F1F4F9;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
    padding: 1.25rem;
    height: auto !important;
    display: flex;
    flex-direction: column;
}

.kanban-column-dropzone {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    min-height: 250px;
    height: auto !important;
    width: 100%;
}

/* Card do Kanban - Protegido contra sobreposição */
.kanban-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.875rem !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    min-height: fit-content !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* SortableJS Drag & Drop */
.sortable-ghost {
    opacity: 0.35;
    background: rgba(37, 99, 235, 0.12) !important;
    border: 2px dashed #2563EB !important;
    border-radius: 1.25rem !important;
}

.sortable-drag {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.15);
}

/* Botões de Ação Rápida */
.btn-action-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #475569;
    transition: all 0.18s ease;
}

.btn-action-icon:hover {
    background: #0F172A;
    color: #FFFFFF;
}

/* Barra de Duração / Áudio / Scrubber */
.timeline-scrubber {
    height: 6px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #2563EB 0%, #3B82F6 100%);
    border-radius: 9999px;
}
