/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f9;
}

/* Sidebar SaaS Style */
#sidebar {
    width: 260px;
    transition: all 0.3s;
    background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%) !important;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    min-height: 100vh;
    height: auto !important; /* Sobrescreve o vh-100 do Bootstrap */
    position: static !important; /* Desativa o sticky para não travar na viewport */
}

#sidebar.collapsed {
    width: 80px;
}

#sidebar.collapsed .nav-text, 
#sidebar.collapsed .brand-text {
    display: none;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
        position: fixed !important;
        z-index: 1050;
        height: 100vh !important;
        overflow-y: auto !important;
    }
    #sidebar.show-mobile {
        margin-left: 0;
    }
    #content {
        width: 100%;
        min-width: 100vw;
    }
}

#sidebar .components {
    padding: 20px 0;
}

#sidebar .components li a {
    padding: 12px 15px;
    font-size: 15px;
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

#sidebar .components li a:hover,
#sidebar .components li.active a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Timeline Customizada */
.timeline {
    border-left: 2px solid #e2e8f0;
    margin-left: 19px;
}

.timeline-item {
    transition: all 0.2s;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 15px;
    width: 15px;
    height: 2px;
    background-color: #e2e8f0;
}

.timeline-content {
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Glassmorphism Textarea & Interaction */
.interaction-area {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

textarea.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    background-color: #fff !important;
}

/* Scrollbar Bonita */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e0; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0aec0; 
}

/* Botões Animados */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:active {
    transform: scale(0.95);
}

/* File Preview Badge */
.file-badge {
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    color: #4a5568;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.file-badge i {
    cursor: pointer;
    color: #e53e3e;
}
