:root {
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --primary-color: #00e5ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --lara-msg: #2d2d2d;
    --user-msg: #004d56;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    height: 100dvh; /* For mobile Safari */
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(13,13,13,1) 0%, rgba(13,13,13,0) 100%);
    z-index: 10;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary-color);
}

.badge {
    font-size: 10px;
    background: var(--primary-color);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.user-select {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 120px; /* Space for controls */
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
}

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

.lara-message {
    background: var(--lara-msg);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--user-msg);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.controls-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 40px;
    background: linear-gradient(0deg, rgba(13,13,13,1) 60%, rgba(13,13,13,0) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mic-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.mic-btn:active {
    transform: scale(0.9);
}

.mic-btn.recording {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.status-text {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
