@import "clerk.css";
/* ============================================
   Pallium - Styles (Matched to Bevy Palette)
   ============================================ */

:root {
    /* Neutrals from your palette */
    --bg: #0d0d0d;
    --surface: #181b24;
    --surface-hover: #212530;
    --border: #2a2f3d;
    --text: #f5f5f5;
    --text-muted: #a0a0a0;

    /* Accents */
    --accent: #ff9e4d;
    --accent-hover: #ffb366;
    --accent-light: #ffd9b3;

    --blue: #66b3ff;
    --blue-hover: #8ac4ff;
    --teal: #00bfbf;
    --yellow: #ffe600;

    --white: #fafafa;
    --gray-200: #d9d9d9;

    /* Semantic */
    --destructive: #ff4d4d;
    --destructive-hover: #ff6666;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

main {
    min-height: calc(100vh - 60px);
    display: grid;
}

#app,
#bevy-graph {
    grid-area: 1 / 1;
}

#app {
    display: flex; /* ← this is the missing piece */
    align-items: center; /* ← vertical centering */
    justify-content: center; /* ← horizontal centering */
    min-height: 100vh; /* ← makes the container tall enough to center in */
    background: #0a0c12;
    /* remove the margin: 0.5rem if you want zero edge space */
}

#main-body {
    position: relative;
    min-height: 100vh;
}

#bevy-canvas {
    z-index: 10;
    width: 100% !important;
    height: 100% !important;
    display: block;
    background: #0a0c12;
    outline: none;
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */
/* Base button - every <button> gets this automatically */
/* Base button - every normal button gets this, but Clerk is excluded */
button:not([role="tab"]):not([data-no-style]):not([class*="cl-"]):not(.cl *) {
    /* ... your existing base button styles stay exactly the same ... */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.33rem 0.66rem;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: var(--accent);
    color: #111;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

/* The hover/focus rules should also get the same exclusion */
button:not([role="tab"]):not([data-no-style]):not([class*="cl-"]):not(.cl *)
    :hover,
button:not([role="tab"]):not([data-no-style]):not([class*="cl-"]):not(.cl *)
    :focus-visible {
    outline: 3px solid rgba(255, 158, 77, 0.4);
    outline-offset: 2px;
}

/* Modifier classes - exactly what you asked for */
button.outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

button.outline:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
}

button.ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
}

button.ghost:hover {
    background: var(--surface-hover);
    color: var(--text);
}

button.warning,
button.destructive {
    background: var(--destructive);
    color: white;
}

button.warning:hover,
button.destructive:hover {
    background: var(--destructive-hover);
}

button.success {
    background: #22c55e;
    color: #111;
}

/* Size modifiers */
button.sm {
    padding: 7px 14px;
    font-size: 13.5px;
}
button.lg {
    padding: 14px 24px;
    font-size: 16px;
}

/* Disabled state */
button:disabled,
button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   TASTY DARK INPUT STYLES (add this block)
   ============================================ */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"] {
    border: none; /* Removes default box border */
    outline: none; /* Removes default focus outline ring */
    background: transparent; /* Optional: removes default input background */
    padding: 8px 0;
    color: var(--text);
    font-size: 15px;
    width: 85%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.25rem 0 0 0;
}

input:focus,
textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-bottom: 2px solid var(--accent);

    /* X-offset | Y-offset | Blur | Spread | Color */
    box-shadow: 0px 5px 10px -3px rgba(255, 158, 77, 0.5);
    background: none;
}

/* Remove any ugly white defaults */
input {
    background: none;
}

#dropdown-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 0 1rem;
    position: absolute;
    z-index: 20; /* Ensures it sits above the Bevy canvas */
}

.dropdown-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

#dropdown-container select {
    width: 100%;
    padding: 4px 8px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

#dropdown-container select:focus {
    outline: none;
    border-color: var(--accent);
}
