:root {
    --bg-dark: #F2F1EE; /* Match landing page background */
    --panel-bg: rgba(255, 255, 255, 0.85); /* Light translucent panel */
    --panel-border: rgba(0, 0, 0, 0.08); /* Subtle dark border */
    --text-primary: #1A1A1A; /* Dark text for light background */
    --text-secondary: #555555;
    --accent-color: #0066FF; /* Electric Blue */
    --accent-hover: #004ecc;
    --accent-gradient: linear-gradient(135deg, #0066FF, #8b5cf6); /* Blue to Amethyst */
    --success-color: #10b981;
    --surface-color: rgba(255, 255, 255, 0.95); /* Nearly solid white for cards */
    --font-family: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 102, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    overflow-x: hidden;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    margin: 2rem;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.panel {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Left Panel */
.left-panel {
    border-right: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(242, 241, 238, 0.4) 100%);
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

select, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    appearance: none;
}

select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select option {
    background-color: #ffffff;
    color: var(--text-primary);
}

.primary-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease forwards 0.3s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 102, 255, 0.4);
}

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

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.state-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.state-container.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

#empty-state {
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
}

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    animation: pulse 3s infinite;
}

#empty-state h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-card {
    background: var(--surface-color);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    position: relative;
}

.result-card:hover {
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    background: rgba(0, 102, 255, 0.08); /* Matching cover-accent-light */
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tool-link:hover {
    color: var(--text-primary);
}

.prompt-container {
    background: rgba(0, 0, 0, 0.03); /* Subtle dark container */
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.prompt-text {
    color: var(--text-primary);
    font-family: inherit;
    line-height: 1.6;
    font-size: 1.05rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-text span.highlight {
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(0, 102, 255, 0.08);
    padding: 0 4px;
    border-radius: 4px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.toast {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    pointer-events: none;
}

.toast.hidden {
    opacity: 0;
    bottom: -4rem;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 90vh;
        margin: 1rem;
    }
    
    .left-panel {
        border-right: none;
        border-bottom: 1px solid var(--panel-border);
    }
    
    .right-panel {
        min-height: 400px;
        padding-top: 1rem;
    }
}
