/**
 * main.css - Estilos Globais
 * BO Inteligente v1.0
 */

/* ============================================ */
/* BASE STYLES - FONTE E LAYOUT */
/* ============================================ */

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    color: #111827;
}

p,
li {
    line-height: 1.7;
}

/* ============================================ */
/* MAIN - LAYOUT RESPONSIVO */
/* ============================================ */

main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Desktop (≥1024px) - Chat ocupa ~70% */
@media (min-width: 1024px) {
    main {
        max-width: 70%;
    }
}

/* Tablet (768px - 1023px) - Chat ocupa ~85% */
@media (min-width: 768px) and (max-width: 1023px) {
    main {
        max-width: 85%;
    }
}

/* Mobile (<768px) - Chat ocupa 100% */
@media (max-width: 767px) {
    main {
        max-width: 100%;
    }
}

/* ============================================ */
/* HEADER - ESTILOS */
/* ============================================ */

header {
    background-color: #2563EB;
    color: #bfdbfe;
    padding: 5px 10px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
    .header-content {
        max-width: 70%;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-content {
        max-width: 85%;
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    .header-content {
        max-width: 100%;
    }
}

.header-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #bfdbfe;
    padding: 0;
}

.header-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header-bo-type {
    font-size: 18px;
    margin: 0;
}

.right-side {
    display: flex;
    align-items: center;
}

.header-icon {
    width: auto;
    height: 30px;
    filter: brightness(0) saturate(100%) invert(88%) sepia(16%) saturate(1000%) hue-rotate(186deg) brightness(104%);
    /* equivalent to the #bfdbfe colour */
}

/* ============================================ */
/* ANIMAÇÕES SUAVES */
/* ============================================ */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar customizada */
#chat-container::-webkit-scrollbar {
    width: 6px;
}

#chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chat-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

#chat-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Modal de rascunho */
.draft-modal {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}