@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    :root {
        /* Surface Colors */
        --color-surface-base: 15 17 21;
        --color-surface-raised: 22 26 30;
        --color-surface-overlay: 28 33 39;
        --color-surface-border: 42 47 54;
        --color-surface-border-light: 54 60 68;

        /* Content Colors */
        --color-content-primary: 232 234 237;
        --color-content-secondary: 154 160 171;
        --color-content-tertiary: 107 114 128;
        --color-content-inverse: 15 17 21;

        /* Primary / Accent (Emerald) */
        --color-primary: 5 150 105;
        --color-primary-light: 52 211 153;
        --color-primary-dark: 4 120 87;
        --color-primary-subtle: rgba(5, 150, 105, 0.12);

        /* Semantic Signal Colors */
        --color-gain: 34 197 94;
        --color-loss: 239 68 68;
        --color-warning: 245 158 11;
        --color-info: 59 130 246;
    }

    html {
        @apply bg-surface-base;
    }

    body {
        @apply font-sans text-content-secondary antialiased;
    }
}

@layer components {
    /* Toast notification system */
    .toast-enter {
        @apply translate-x-full opacity-0;
    }
    .toast-enter-active {
        @apply translate-x-0 opacity-100 transition-all duration-300 ease-out;
    }
    .toast-leave-active {
        @apply translate-x-full opacity-0 transition-all duration-200 ease-in;
    }
}
