:root {
    --primary-bg: #000000;
    --card-bg: #141414;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --button-primary: #FFFFFF;
    --button-secondary: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Navigation Styles */
header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.logo img {
    height: 24px;
}

.logo span {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-weight: 400;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.account-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.download-btn {
    background: #FFFFFF;
    color: var(--button-secondary);
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
}

/* Main Content Styles */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    background: #000000;
}

.login-container {
    background: #141414;
    border-radius: 32px;
    padding: 3.5rem;
    width: 100%;
    max-width: 640px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

h1 {
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.login-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.meaning-input {
    background: transparent;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    min-height: 400px;
    height: 400px;
    max-height: 400px;
    outline: none;
    white-space: pre-wrap;
    position: relative;
    padding-left: 2rem;
    padding-right: 1rem;
    overflow-y: auto;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* Hide scrollbar */
.meaning-input::-webkit-scrollbar {
    display: none;
}

/* Base state */
.meaning-input::before {
    content: '/';
    position: fixed;
    left: calc(50% - 320px + 3.5rem);
    color: rgb(80, 255, 80);
    transform-origin: center left;
    animation: breathe 2s infinite ease-in-out;
    opacity: 0.95;
    pointer-events: none;
    user-select: none;
    font-weight: 500;
    z-index: 1;
}

/* Rainbow pulse only when there's actual content */
.meaning-input:not(:empty):not(:only-child)::before {
    animation: rainbowPulse 3s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.7; }
}

@keyframes rainbowPulse {
    0%, 100% { 
        color: rgb(80, 255, 80);
        opacity: 0.95;
    }
    25% { 
        color: rgb(80, 200, 255);
        opacity: 0.9;
    }
    50% { 
        color: rgb(200, 100, 255);
        opacity: 0.95;
    }
    75% { 
        color: rgb(255, 150, 100);
        opacity: 0.9;
    }
}

.login-warning {
    font-family: "SF Mono", ui-monospace, "Cascadia Mono", monospace;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.login-btn {
    font-family: "SF Mono", ui-monospace, "Cascadia Mono", monospace;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    background: #FFFFFF;
    color: #000000;
    white-space: nowrap;
}

/* Hover states */
.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Hover States */
.nav-links a:hover {
    color: #FFFFFF;
}

.meaning-input * {
    all: unset !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    white-space: pre-wrap !important;
}

/* Position the shortcut hint */
.shortcut-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: "SF Mono", ui-monospace, "Cascadia Mono", monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shortcut-hint.visible {
    opacity: 1;
}

/* Rainbow animation for key press */
.shortcut-hint span.pressed {
    animation: rainbowPulse 3s infinite ease-in-out;
}

/* Adjust the cmd symbol size */
.shortcut-hint .cmd {
    font-size: 0.9rem;
}

/* Saved file link styling */
.saved-file-link {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    user-select: none;
}

/* Remove hover effects since it's not a link anymore */