
/* =====================================================
   VISUAL STUDIO CODE
   Global Styles - Dark+ Theme
===================================================== */


/* =====================================================
   1. CSS VARIABLES
===================================================== */

:root {

    /* VS Code Dark+ Background Colors */
    --bg-primary: #1e1e1e;
    --bg-secondary: #252526;
    --bg-tertiary: #2d2d30;
    --bg-elevated: #333333;
    --bg-hover: #2a2d2e;
    --bg-active: #37373d;

    /* Activity Bar */
    --activity-bg: #333333;
    --activity-active: #ffffff;

    /* Editor */
    --editor-bg: #1e1e1e;
    --editor-tab-bg: #2d2d2d;
    --editor-tab-active: #1e1e1e;

    /* Borders */
    --border-color: #3c3c3c;
    --border-subtle: #303030;
    --border-active: #007acc;

    /* Text Colors */
    --text-primary: #cccccc;
    --text-secondary: #9d9d9d;
    --text-muted: #6a6a6a;
    --text-white: #ffffff;

    /* Accent Colors */
    --accent-color: #007acc;
    --accent-hover: #1177bb;
    --accent-light: #4fc1ff;

    /* Status Colors */
    --success-color: #89d185;
    --warning-color: #cca700;
    --error-color: #f48771;

    /* Syntax Highlighting Colors */
    --syntax-blue: #569cd6;
    --syntax-light-blue: #9cdcfe;
    --syntax-green: #6a9955;
    --syntax-yellow: #dcdcaa;
    --syntax-orange: #ce9178;
    --syntax-purple: #c586c0;
    --syntax-red: #f44747;

    /* Typography */
    --font-primary:
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif;

    --font-code:
        Consolas,
        "Courier New",
        monospace;

    /* Application Dimensions */
    --titlebar-height: 35px;
    --activitybar-width: 48px;
    --sidebar-width: 270px;
    --statusbar-height: 22px;
    --editor-tab-height: 35px;

    /* Common Effects */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;

    --shadow-small:
        0 1px 3px rgba(0, 0, 0, 0.25);

}


/* =====================================================
   2. RESET
===================================================== */

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

html {
    width: 100%;
    height: 100%;

    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 320px;
    height: 100%;

    background: var(--bg-primary);
    color: var(--text-primary);

    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 400;

    overflow: hidden;

    -webkit-font-smoothing: antialiased;
}


/* =====================================================
   3. GLOBAL ELEMENT STYLES
===================================================== */

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

button {
    color: inherit;
    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

input,
textarea {
    color: var(--text-primary);
}

input {
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}


/* =====================================================
   4. TEXT SELECTION
===================================================== */

::selection {
    background: #264f78;
    color: #ffffff;
}


/* =====================================================
   5. SCROLLBAR - VS CODE STYLE
===================================================== */

* {
    scrollbar-width: thin;
    scrollbar-color: #424242 transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #424242;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
    border: 2px solid transparent;
    background-clip: padding-box;
}

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


/* =====================================================
   6. FOCUS STATES
===================================================== */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {

    outline: 1px solid var(--accent-color);
    outline-offset: 1px;

}


/* =====================================================
   7. COMMON UTILITY CLASSES
===================================================== */

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

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

.text-accent {
    color: var(--accent-light);
}

.no-select {
    user-select: none;
}


/* =====================================================
   8. COMMON BUTTON STYLES
===================================================== */

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: var(--text-secondary);

    background: transparent;
    border-radius: 4px;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.icon-button:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}


/* =====================================================
   9. DIVIDERS
===================================================== */

.divider {
    width: 100%;
    height: 1px;

    background: var(--border-color);
    border: none;
}


/* =====================================================
   10. ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}
