/* CSS Reset & Variables */
:root {
    --bg-color: #0f172a;      /* Dark sleek background */
    --surface-color: #1e293b; /* Card surface */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;  /* Soft blue */
    --accent-hover: #2563eb;
    --border-color: #334155;
    --success-bg: #064e3b;
    --success-text: #34d399;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* App Layout */
.app-container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--surface-color);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

#profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

#user-name {
    font-weight: 400;
    font-size: 0.95rem;
}

/* Content Area */
.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    text-align: left;
}

.card h1, .card h2 {
    margin-bottom: 12px;
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* API Testing Area */
.ai-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

button#test-ai-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: inherit;
}

button#test-ai-btn:hover {
    background-color: var(--accent-hover);
}

button#test-ai-btn:active {
    transform: scale(0.98);
}

#ai-loading {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

/* Result Box */
#ai-result {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: monospace;
    white-space: pre-wrap;
    min-height: 80px;
    color: #e2e8f0;
}
