/* Adam Platform Design System - Inspired by Untitled UI */

:root {
    /* Primary Colors - Map to WP presets if available */
    --primary-600: var(--wp--preset--color--primary, #444ce7);
    --primary-700: var(--wp--preset--color--secondary, #3538cd);
    --primary-50: #f5f8ff;
    --primary-100: #e0eaff;
    --primary-900: #2d31a6;

    /* Neutrals - Map to WP presets if available */
    --bg-main: var(--wp--preset--color--background, #ffffff);
    --bg-sidebar: var(--wp--preset--color--base, #fcfcfd);
    --border-subtle: #eaecf0;
    --text-primary: var(--wp--preset--color--foreground, #101828);
    --text-secondary: #475467;
    --text-tertiary: #667085;

    /* Status Colors */
    --success-50: #ecfdf3;
    --success-600: #039855;
    --warning-50: #fffaeb;
    --warning-600: #dc6803;

    /* Theme Toggle Variable */
    --transition-speed: 0.2s;

    /* Typography */
    --font-heading: var(--wp--preset--font-family--heading, 'Inter', sans-serif);
    --font-body: var(--wp--preset--font-family--body, var(--wp--preset--font-family--base, 'Inter', sans-serif));
}

/* Dark Mode Overrides - WP 6.2+ uses [data-wp-theme-color-mode="dark"] often, but we keep our manual toggle */
[data-theme="dark"] {
    --bg-main: #0c111d;
    --bg-sidebar: #101828;
    --border-subtle: #1f242f;
    --text-primary: #f9fafb;
    --text-secondary: #d0d5dd;
    --text-tertiary: #98a2b3;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Layout */
#adam-app-container {
    display: flex;
    min-height: 800px;
    height: 90vh;
}

/* Sidebar */
#adam-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--adam-gray-200);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
}

/* Content Area */
#adam-main-content {
    flex: 1;
    padding: 48px;
    overflow-y: auto;
}

/* Cards & Components */
.adam-card {
    background: var(--adam-white);
    border: 1px solid var(--adam-gray-200);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--adam-shadow-sm);
}

.adam-button-primary {
    background: var(--adam-purple-primary);
    color: var(--adam-white);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adam-button-primary:hover {
    background: #6941C6;
    box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.1);
}

/* Progress bar (from inspiration) */
.adam-progress-container {
    width: 100%;
    height: 8px;
    background: var(--adam-gray-100);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.adam-progress-fill {
    height: 100%;
    background: var(--adam-purple-primary);
    width: 0%;
    transition: width 0.3s ease;
}