:root {
    --background-color: #f4f7f9;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --primary-color: #4285F4;
    --border-color: #e0e0e0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.container {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

p {
    color: #576c7f;
    line-height: 1.6;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button-primary:hover {
    background-color: #357ae8;
}

.button-primary svg {
    background-color: white;
    border-radius: 50%;
    padding: 2px;
}

.hidden {
    display: none !important;
}

/* Logged In View */
.user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.user-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.user-header p {
    margin: 0;
    font-size: 0.9rem;
}

.user-header .button-secondary {
    margin-left: auto;
    background: #eef2f5;
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.user-header .button-secondary:hover {
    background: #e1e6ea;
}

.token-container {
    margin-bottom: 1.5rem;
}

.token-container h3 {
    margin: 0 0 0.25rem 0;
}

.token-box {
    position: relative;
}

textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    resize: none;
    box-sizing: border-box;
    background-color: #f8fafc;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #576c7f;
}

.warning-text {
    font-size: 0.8rem;
    color: #e67e22;
    background-color: #fdf5e8;
    padding: 8px;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
