@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
        
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #f4f4f5;
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --accent: #3b82f6;
    --accent-light: #93c5fd;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --surface: #ffffff;
    --border: #e4e4e7;
    --shadow: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #18181b;
        --bg-secondary: #27272a;
        --text-primary: #f4f4f5;
        --text-secondary: #a1a1aa;
        --surface: #27272a;
        --border: #3f3f46;
        --shadow: rgba(0, 0, 0, 0.2);
        --accent-glow: rgba(59, 130, 246, 0.15);
    }
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

.container-app {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-2px);
}

.input-field {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: 16px;
    transition: all 0.25s ease;
    font-size: 16px;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn {
    background-color: var(--accent);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn:active {
    transform: translateY(1px);
}

.btn-subtle {
    background-color: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 11px 24px;
}

.btn-subtle:hover {
    background-color: var(--accent-glow);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-send {
    color: var(--accent);
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 10px;
    border-radius: 10px;
    margin-left: 8px;
}

.btn-send:hover {
    background-color: var(--accent-glow);
    transform: translateY(-1px);
}

.btn-send:active {
    transform: translateY(1px);
}

.accent-border {
    border-left: 3px solid var(--accent);
}

.typing-indicator::after {
    content: '|';
    animation: blink 1.1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

.fade-in {
    animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Glassmorphism for response section */
.glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Quote styling */
.quote {
    position: relative;
    padding-left: 20px;
}

.quote::before {
    content: '"';
    font-family: 'Georgia', serif;
    font-size: 42px;
    position: absolute;
    left: -8px;
    top: -12px;
    color: var(--accent);
    opacity: 0.4;
}

/* Focus outline */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Header animation */
.header-title {
    background: linear-gradient(120deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Response card styling */
.response-card {
    border-left: 4px solid var(--accent);
}

/* Conclusion box styling */
.conclusion-box {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-secondary) 100%);
}

/* Tratação de erro  */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
  }
  
  .shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  }

@media (max-width: 640px) {
    .container-app {
        padding: 16px 20px;
    }
    
    .card {
        border-radius: 14px;
    }
    
    .input-field {
        padding: 14px;
        font-size: 15px;
    }
}