/* Core app styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Comprehensive button reset to eliminate browser defaults */
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

button:focus {
    outline: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;  /* Inherit 12px base font size */
    background: var(--color-primary-light);
    min-height: 100vh;
    margin: 0;
}

.app-container {
    display: flex;
    height: 100vh;
    background: var(--color-primary-light);
    width: 100vw;
    overflow: hidden;
}

/* Loading states */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #718096;
}

.loading.show {
    display: block;
}

.loading-dots {
    animation: pulse 1.5s infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Streaming cursor animation */
.streaming-cursor::after {
    content: '▌';
    color: var(--color-primary);
    animation: blink 1s infinite;
}
