@import "components.css";
@import "dashboard.css";

:root {
    --font: "Segoe UI", ui-sans-serif, system-ui, sans-serif;

    font-size: 16px;
    font-family: var(--font);
}

:root[data-theme="dark"] {
    --bg-dark: hsl(212, 17%, 10%);
    --bg-medium: hsl(212, 18%, 12%);
    --bg-normal: hsl(212, 18%, 14%);

    --text-normal: hsl(220, 13%, 70%);
    --text-muted: hsl(221, 9%, 58%);
    --text-clear: hsla(221, 12%, 70%, 0.7);
    --text-dark: hsl(237, 65%, 5%);

    --button: hsl(212, 18%, 14%);
    --button-hover: hsl(212, 11%, 23%);

    --progress-bar: hsl(214, 10%, 31%);
    --progress-bg: hsla(220, 13%, 70%, 0.1);

    --primary-accent: hsl(235, 100%, 73%);
    --secondary-accent: hsl(235, 100%, 80%);
    --primary-ghost: hsla(235, 100%, 73%, 0.3);

    --success: hsl(161, 100%, 30%);
    --warning: hsl(45, 100%, 40%);
    --error: hsl(0, 100%, 71%);

    --success-secondary: hsl(161, 75%, 50%);
    --warning-secondary: hsl(45, 75%, 60%);
    --error-secondary: hsl(0, 75%, 75%);

    --box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] {
    --bg-dark: hsl(213, 17%, 86%);
    --bg-medium: hsl(213, 18%, 88%);
    --bg-normal: hsl(212, 18%, 90%);

    --text-normal: hsl(220, 13%, 20%);
    --text-muted: hsl(221, 9%, 26%);
    --text-clear: hsla(221, 12%, 20%, 0.7);
    --text-dark: hsl(237, 65%, 95%);

    --button: hsl(213, 18%, 90%);
    --button-hover: hsl(213, 11%, 82%);

    --progress-bar: hsl(214, 10%, 69%);
    --progress-bg: hsla(220, 13%, 30%, 0.3);

    --primary-accent: hsl(235, 100%, 67%);
    --secondary-accent: hsl(235, 100%, 74%);

    --success: hsl(161, 100%, 25%);
    --warning: hsl(45, 100%, 35%);
    --error: hsl(0, 100%, 65%);

    --success-secondary: hsl(161, 75%, 40%);
    --warning-secondary: hsl(45, 75%, 50%);
    --error-secondary: hsl(0, 75%, 65%);

    --box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

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

html,
body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: var(--bg-dark);
    color: var(--text-muted);

    font-size: 16px;
    font-family: var(--font-sans);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
body.visible {opacity: 1; transform: translateY(0);}

main {
    flex: 1;
}