/**
 * Estilos do Gerador de Orçamento com IA
 * Arquivo: assets/css/styles.css
 */

/* =============================================================================
   CONFIGURAÇÕES GLOBAIS
   ============================================================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    color: #d1d5db;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* =============================================================================
   SCROLLBAR PERSONALIZADA
   ============================================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* =============================================================================
   ESTILOS DE MARKDOWN/PROSE
   ============================================================================= */

.prose-custom {
    color: #d1d5db;
}

.prose-custom h1, 
.prose-custom h2, 
.prose-custom h3 {
    color: #f9fafb;
    border-bottom-color: #374151;
}

.prose-custom strong {
    color: #f9fafb;
}

.prose-custom blockquote {
    color: #9ca3af;
    border-left-color: #4b5563;
}

.prose-custom table {
    width: 100%;
    border-collapse: collapse;
}

.prose-custom th, 
.prose-custom td {
    border: 1px solid #374151;
    padding: 8px;
    text-align: left;
}

.prose-custom th {
    background-color: #1f2937;
    font-weight: 600;
}

.prose-custom tr:nth-child(even) {
    background-color: #1f2937;
}

/* =============================================================================
   COMPONENTES DE INTERFACE
   ============================================================================= */

/* Header */
.app-header {
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #374151;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-title h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.header-icon {
    width: 28px;
    height: 28px;
    color: #6366f1;
}

/* Layout Principal */
.main-container {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem 1vw;
    max-width: 98vw;
    margin: 0 auto;
    width: 100vw;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.column {
    background-color: #1f2937;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
    flex: 0 1 70%;
    width: 70%;
}

@media (min-width: 1024px) {
    .main-container {
        flex-direction: row;
        max-width: 98vw;
        width: 100vw;
        padding: 2rem 1vw;
    }
    .column {
        flex: 0 1 70%;
        width: 70%;
        max-width: none;
    }
    .chat-column {
        flex: 0 1 30%;
        width: 30%;
        max-width: none;
    }
}

/* =============================================================================
   SEÇÃO DE BRIEFING
   ============================================================================= */

.briefing-container {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Tabs */
.tabs-container {
    display: flex;
    border-bottom: 1px solid #374151;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.tab-button:hover {
    color: #ffffff;
    border-bottom-color: #6b7280;
}

.tab-button.active {
    border-bottom-color: #6366f1;
    color: #ffffff;
}

/* Conteúdo das Tabs */
.tab-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tab-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tab-panel.hidden {
    display: none;
}

.tab-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Textarea */
.briefing-textarea {
    width: 100%;
    flex: 1;
    background-color: #111827;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    padding: 1rem;
    color: #d1d5db;
    resize: none;
    transition: all 0.15s ease-in-out;
}

.briefing-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #6366f1;
    border-color: #6366f1;
}

.briefing-textarea::placeholder {
    color: #6b7280;
}

.briefing-textarea.error {
    box-shadow: 0 0 0 2px #ef4444;
    border-color: #ef4444;
}

/* Upload Area */
.upload-area {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px dashed #4b5563;
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: rgba(17, 24, 39, 0.5);
    transition: background-color 0.15s ease-in-out;
}

.upload-label:hover {
    background-color: rgba(31, 41, 55, 0.6);
}

.upload-label.dragover {
    background-color: rgba(79, 70, 229, 0.25);
    border-color: #6366f1;
    color: #e0e7ff;
}

.upload-label.dragover .upload-icon {
    color: #818cf8;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.upload-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

.upload-text {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.upload-highlight {
    font-weight: 600;
    color: #6366f1;
}

.upload-help {
    font-size: 0.75rem;
    color: #6b7280;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 500;
}

.file-name.error {
    color: #ef4444;
}

.upload-input {
    display: none;
}

/* Botão Gerar */
.generate-button {
    margin-top: 1rem;
    width: 100%;
    background-color: #6366f1;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.generate-button:hover:not(:disabled) {
    background-color: #5145e4;
}

.generate-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.generate-icon {
    width: 20px;
    height: 20px;
}

/* =============================================================================
   SEÇÃO DE OUTPUT/MARKDOWN
   ============================================================================= */

.output-container {
    padding: 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.08), transparent 55%)
        , radial-gradient(circle at bottom, rgba(59, 130, 246, 0.05), transparent 60%);
    color: #d1d5db;
    position: relative;
}

.output-container.hidden {
    display: none;
}

.markdown-output {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 1.5rem 0;
    background: transparent;
    color: inherit;
}

.markdown-output::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
}

.markdown-output::-webkit-scrollbar-track {
    background-color: transparent;
}

.document-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pdf-preview {
    width: 100%;
    min-height: 780px;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 32px 70px -45px rgba(30, 64, 175, 0.4);
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.08), rgba(30, 64, 175, 0.05));
}

.document-page .proposal-document {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.document-header {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.document-section {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.section-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.78;
    color: #1f2937;
}

.document-table {
    width: 100%;
}

.document-page .document-list {
    margin: 0;
    padding-left: 1.6rem;
    color: #1f2937;
}

.document-page .document-list li {
    margin-bottom: 0.55rem;
}

.document-page .document-section > h3 {
    margin-top: 0.4rem;
}

.document-page {
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    background: #ffffff;
    color: #0f172a;
    border-radius: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 32px 70px -45px rgba(30, 64, 175, 0.4);
    padding: 24mm 26mm 28mm;
    font-family: 'Inter', sans-serif;
    position: relative;
    box-sizing: border-box;
}

.document-page::after {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 0.65rem;
    border: 1px solid rgba(129, 140, 248, 0.18);
    pointer-events: none;
}

.document-page > *:first-child {
    margin-top: 0;
}

.document-page h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 3px solid #c7d2fe;
    color: #312e81;
}

.document-page h2 {
    font-size: 1.35rem;
    margin: 2.75rem 0 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.35);
    text-transform: none;
    letter-spacing: 0.01em;
    color: #4338ca;
}

.document-page h3 {
    font-size: 1.08rem;
    margin: 1.85rem 0 0.6rem;
    color: #1f2a66;
    font-weight: 600;
}

.document-page h4 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
    color: #334155;
    font-weight: 600;
}

.document-page p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.78;
    color: #1f2937;
}

.document-page ul,
.document-page ol {
    margin: 0 0 1.4rem;
    padding-left: 1.6rem;
    color: #334155;
}

.document-page li {
    margin-bottom: 0.6rem;
}

.document-page li::marker {
    color: #4f46e5;
    font-weight: 600;
}

.document-page table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.85rem 0 2.4rem;
    font-size: 0.92rem;
    background: #ffffff;
    box-shadow: 0 14px 36px -22px rgba(30, 64, 175, 0.34);
    overflow: hidden;
    border-radius: 0.65rem;
    table-layout: fixed;
}

.document-page thead th {
    background: linear-gradient(135deg, #edf2ff 0%, #dbeafe 100%);
    color: #312e81;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0.9rem 1rem;
    border-bottom: 2px solid #c7d2fe;
}

.document-page tbody tr:nth-child(even) {
    background: #f5f7ff;
}

.document-page tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

.document-page th,
.document-page td {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(203, 213, 225, 0.75);
    text-align: left;
    color: #1e293b;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: none;
}

.document-page thead th:nth-child(1),
.document-page tbody td:nth-child(1) {
    width: 16%;
}

.document-page thead th:nth-child(2),
.document-page tbody td:nth-child(2) {
    width: 15%;
}

.document-page thead th:nth-child(3),
.document-page tbody td:nth-child(3) {
    width: 28%;
    hyphens: auto;
}

.document-page thead th:nth-child(4),
.document-page tbody td:nth-child(4) {
    width: 12%;
}

.document-page thead th:nth-child(5),
.document-page tbody td:nth-child(5) {
    width: 8%;
}

.document-page thead th:nth-child(6),
.document-page tbody td:nth-child(6) {
    width: 12%;
}

.document-page thead th:nth-child(7),
.document-page tbody td:nth-child(7) {
    width: 9%;
}

.document-page tfoot td {
    background: #ede9fe;
    color: #312e81;
    font-weight: 600;
}

.document-page blockquote {
    border-left: 4px solid #6366f1;
    background: rgba(99, 102, 241, 0.08);
    color: #312e81;
    padding: 1rem 1.25rem;
    margin: 1.75rem 0;
    border-radius: 0.75rem;
    font-style: italic;
    line-height: 1.7;
}

.document-page hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2.75rem 0;
}

.document-page hr.document-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.18), rgba(14, 116, 144, 0.12), rgba(79, 70, 229, 0.18));
}

.document-page .page-break {
    page-break-after: always;
    height: 0;
    border: 0;
    margin: 0;
}

.document-page code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
}

.document-page pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.document-page strong {
    color: #111827;
}

.document-page em {
    color: #4c1d95;
}

.document-page .meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.8rem 0 1.3rem;
}

.document-page .meta-card {
    background: linear-gradient(130deg, #f5f7ff 0%, #eef2ff 100%);
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 16px 32px -24px rgba(79, 70, 229, 0.45);
}

.document-page .meta-card strong {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4f46e5;
}

.document-page .meta-card span {
    font-size: 1.02rem;
    font-weight: 600;
    color: #1f2937;
}

.document-page .document-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.35), rgba(99, 102, 241, 0.1));
    margin: 2.2rem 0 1.8rem;
}

.document-page .signature-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.document-page .signature-line {
    width: 100%;
    height: 1px;
    background: #cbd5f5;
    margin-bottom: 0.35rem;
}

.document-page .signature-label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.document-page .totals-callout {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(139, 92, 246, 0.16));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0.85rem;
    padding: 1.35rem 1.6rem;
    margin: 2.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 18px 38px -28px rgba(99, 102, 241, 0.6);
}

.document-page .totals-callout strong {
    font-size: 1.15rem;
    color: #1e1b4b;
}

.document-page .totals-callout p {
    margin: 0;
    font-size: 1.04rem;
    color: #1e1b4b;
}

.document-page .totals-callout ul,
.document-page .totals-callout ol {
    margin: 0;
    padding-left: 1.2rem;
    color: #1d1b5d;
}

.document-page .totals-list {
    list-style: none;
    padding-left: 0;
}

.document-page .total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.35rem 0;
    color: #1f1b5d;
}

.document-page .total-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.document-page .total-value {
    font-weight: 700;
    color: #1e1b4b;
}

.document-page .badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
}

.document-page .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(99, 102, 241, 0.12);
    color: #312e81;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.document-page .badge::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.8;
}

.document-page .callout {
    border-left: 4px solid rgba(99, 102, 241, 0.65);
    padding: 1rem 1.25rem;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 0.65rem;
    margin: 1.75rem 0;
}

.document-page .callout strong {
    display: block;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    color: #4338ca;
}

.document-page .footer-note {
    margin-top: 3rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.82rem;
    color: #475569;
}

.document-page .footer-note strong {
    color: #3730a3;
}

.document-page a {
    color: #4338ca;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(79, 70, 229, 0.35);
    padding-bottom: 0.1rem;
}

.document-page a:hover {
    border-bottom-color: rgba(79, 70, 229, 0.65);
}

@page {
    size: A4 portrait;
    margin: 0;
}

@media (max-width: 1260px) {
    .output-container {
        padding: 1.75rem 1.5rem;
    }
    .document-page {
        padding: 18mm 20mm;
    }
}

@media (max-width: 960px) {
    .document-page {
        width: calc(100% - 2rem);
        padding: 12vw 8vw;
        min-height: auto;
    }
    .document-page::after {
        inset: 12px;
    }
}

@media (max-width: 640px) {
    .output-container {
        padding: 1.25rem 1rem;
    }
    .document-page {
        padding: 10vw 7vw;
        border-radius: 0.65rem;
    }
}

@media print {
    body {
        background: #ffffff !important;
        color: #111827 !important;
    }
    .app-header,
    .briefing-container,
    .chat-column,
    .app-header + *,
    .chat-form-container {
        display: none !important;
    }
    .main-container,
    .column,
    .output-container,
    .markdown-output {
        padding: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }
    .document-page {
        width: 100% !important;
        min-height: auto !important;
        padding: 20mm !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    }
    .document-page::after {
        display: none;
    }
    .document-page .page-break {
        page-break-after: always;
    }
    .document-page:last-child .page-break,
    .document-page:last-child {
        page-break-after: auto;
    }
}

/* =============================================================================
   SEÇÃO DE CHAT
   ============================================================================= */


.chat-column {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
    flex: 0 1 30%;
    width: 30%;
}

.chat-column.hidden {
    display: none;
}
.chat-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #374151;
    background-color: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(6px);
}

.chat-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

.chat-description {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    display: flex;
    justify-content: flex-end;
}

.chat-message.ai {
    justify-content: flex-start;
}

.chat-message.error {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 28rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}

@media (min-width: 1024px) {
    .message-bubble {
        max-width: 32rem;
    }
}

.message-bubble.user {
    background-color: #6366f1;
    color: #ffffff;
}

.message-bubble.ai {
    background-color: #374151;
    color: #d1d5db;
}

.message-bubble.error {
    background-color: rgba(239, 68, 68, 0.8);
    color: #ffffff;
}

.message-bubble.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Animação de loading */
.loading-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #9ca3af;
    animation: loading-pulse 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loading-pulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Briefing expandível */
.briefing-details {
    max-width: 28rem;
    background-color: #6366f1;
    color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .briefing-details {
        max-width: 32rem;
    }
}

.briefing-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.briefing-summary::-webkit-details-marker {
    display: none;
}

.briefing-content {
    padding: 0.75rem 1rem 0.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.5);
    white-space: pre-wrap;
}

.briefing-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.briefing-details[open] .briefing-icon {
    transform: rotate(180deg);
}

/* Formulário do Chat */
.chat-form-container {
    padding: 1rem;
    border-top: 1px solid #374151;
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-input {
    width: 100%;
    background-color: #111827;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: #d1d5db;
    transition: all 0.15s ease-in-out;
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #6366f1;
    border-color: #6366f1;
}

.chat-input::placeholder {
    color: #6b7280;
}

.send-button {
    background-color: #6366f1;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.send-button:hover:not(:disabled) {
    background-color: #5145e4;
}

.send-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.send-icon {
    width: 24px;
    height: 24px;
}

/* =============================================================================
   UTILITÁRIOS E ESTADOS
   ============================================================================= */

.hidden {
    display: none !important;
}

/* Layout flexível */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Responsividade */
@media (max-width: 1023px) {
    .main-container {
        flex-direction: column;
        max-width: 100vw;
        width: 100vw;
        padding: 1rem 0.5rem;
    }
    .column,
    .chat-column {
        width: 100% !important;
        max-width: none !important;
    }
}