@import url('custom_controls.css');

:root {
    /* Nix Brand Colors */
    --primary-color: #284095;
    /* Nix Blue */
    --primary-hover: #1b2d6a;
    /* Darker Blue */
    --secondary-color: #e7302a;
    /* Nix Red */
    --accent-color: #f3b31b;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.75);
    /* Slate 800 */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;

    --border-color: rgba(148, 163, 184, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s;
    --font-family: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-bounce 10s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #10b981;
    /* Emerald 500 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
    opacity: 0.2;
}

@keyframes blob-bounce {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 600px;
    min-height: 80vh;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    margin: 1rem;
    transition: all var(--transition-speed) ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5em;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    /* Dynamic */
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* Wizard Content */
.wizard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1,
h2 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.step-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    /* .options-grid {
        grid-template-columns: 1fr 1fr;
    } For typical grid, but list style might be better for mobile-first chat feel */
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle */
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.option-icon {
    font-size: 1.5rem;
    background: rgba(99, 102, 241, 0.2);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary-color);
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 500;
    color: var(--text-main);
    font-size: 1.1rem;
}

.option-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
    padding: 0.75rem;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}

.btn-secondary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Utils */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.app-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}