/* ==========================================================================
   Reset & stiluri generale
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Keep every native modal centered after the global reset removes UA margins. */
dialog {
    position: fixed;
    inset: 0;
    margin: auto;
}

dialog[open] {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
