:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(15, 23, 42, 0.6);
    --success-color: #10b981;
    --error-color: #ef4444;
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --blur-size: 80px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background Decorations */
.background-decor {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(var(--blur-size));
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.blur-top {
    top: -20vh;
    right: -10vw;
    background: radial-gradient(circle, var(--primary-color), transparent);
}

.blur-bottom {
    bottom: -20vh;
    left: -10vw;
    background: radial-gradient(circle, #8b5cf6, transparent);
}

/* Container */
.app-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    animation: fadeIn 0.8s ease-out;
}

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

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 32px;
}

.app-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header .subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Card & Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card {
    padding: 32px;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.3s;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

input[type="text"]:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: rgba(15, 23, 42, 0.8);
}

.select-wrapper {
    position: relative;
}

/* Dynamic Form */
.dynamic-form {
    min-height: 100px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.form-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-style: italic;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    position: relative;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--text-muted);
}

/* Status Display */
.status-display {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    animation: slideUp 0.4s ease-out;
}

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

.status-display.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-display.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.hidden {
    display: none !important;
}

.status-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-message {
    font-size: 0.875rem;
    opacity: 0.9;
}

.status-details {
    margin-top: 12px;
    font-family: monospace;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        padding: 16px;
    }
    .card {
        padding: 24px;
    }
}
