/* Base Styles */
@font-face {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Spectral-Regular.woff2') format('woff2'),
         url('../fonts/Spectral-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Spectral-SemiBold.woff2') format('woff2'),
         url('../fonts/Spectral-SemiBold.woff') format('woff');
}

@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Cardo-Regular.woff2') format('woff2'),
         url('../fonts/Cardo-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Cardo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Cardo-Bold.woff2') format('woff2'),
         url('../fonts/Cardo-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Gruppo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Gruppo-Regular.woff2') format('woff2'),
         url('../fonts/Gruppo-Regular.woff') format('woff');
}

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

:root {
    --transition-fast: 150ms;
    --transition-normal: 200ms;
    --transition-slow: 250ms;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.2);
    /* Fallbacks before theme loads */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #4a9eff;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Spectral', serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.app-root {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 280px 1fr;
    grid-template-areas:
        "header header"
        "sidebar workspace"
        "dock dock";
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5);
}
