* {
    margin: 0;
    padding: 0;
    min-width: 0;
    font-family: "Poppins", sans-serif;
}
body {
    height: 100vh;
    width: 100vw;
    background-color: var(--bg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text_primary);
}
a {
    text-decoration: none;
    color: var(--text_primary);
}
input,
select,
textarea {
    outline: none;
    background: none;
}
option:first-child {
    color: var(--tertiary);
}
input[type="checkbox"] {
    accent-color: var(--primary);
}
input[type="file"] {
    display: none;
}
input[type="date"]:disabled {
    color: var(--tertiary);
}
/*--------BUTTONS--------*/
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: 600;
}
.btn:hover {
    transition: all 0.3s ease-in-out;
}
.btn:disabled {
    cursor: not-allowed;
}
.btn.disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}
.btn--primary {
    background: var(--secondary);
    color: var(--text_secondary);
    border-radius: 4px;
}
.btn--primary:hover {
    background: var(--secondary_hover);
}
.btn--primary:disabled {
    background: #8c8c8c;
}
.btn--secondary {
    background: var(--bg_secondary);
    color: var(--text_primary);
    border: 1px solid var(--secondary);
    border-radius: 4px;
}
.btn--secondary:hover {
    background: var(--secondary);
    color: var(--text_secondary);
}
.btn--tertiary {
    background: var(--primary);
    color: var(--text_secondary);
    border-radius: 4px;
}
.btn--tertiary:hover {
    background: var(--primary_hover);
    color: var(--text_secondary);
}
.btn--cancel {
    border-radius: 4px;
    background: var(--error);
    color: var(--text_secondary);
}
.btn--cancel--secondary {
    border-radius: 4px;
    background: var(--bg_secondary);
    border: 2px solid var(--error);
    color: var(--error);
}
.btn--success {
    background: var(--success);
    color: var(--text_secondary);
    border-radius: 4px;
}
.btn--success:hover {
    background: var(--success_hover);
    color: var(--text_secondary);
}
.btn--size-big {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
}
.btn--size-medium {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
}
.btn--size-small {
    height: 24px;
    min-height: 24px;
    max-height: 24px;
}
.btn--width-fill {
    width: 100%;
}
.btn--width-fit {
    width: fit-content;
}
.btn--only_icon {
    padding: 0;
}
.btn--size-big.btn--only_icon {
    width: 42px;
}
.btn--size-medium.btn--only_icon {
    width: 32px;
}
.btn--size-small.btn--only_icon {
    width: 24px;
}
.btn__icon {
    pointer-events: none;
    user-select: none;
}
.btn__text {
    pointer-events: none;
    user-select: none;
}
.btn--size-big .btn__icon {
    width: 18px;
}
.btn--size-medium .btn__icon {
    width: 16px;
}
.btn--size-small .btn__icon {
    width: 14px;
}

/*--------BLUR--------*/

#blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    transition: background 0.5s ease-in-out;
}
#blur.open {
    pointer-events: all;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.5s ease-in-out;
}

/*-----------POPUP-----------*/
.popup {
    z-index: 3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg_secondary);
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border-radius: 4px;
}
.popup.open {
    display: flex;
}
.popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.popup__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text_primary);
}
.popup__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/*-----------WARNING-----------*/
.warning {
    z-index: 3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg_secondary);
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    max-width: 464px;
}
.open .warning {
    display: flex;
}
.warning__header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.warning__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text_primary);
}
.warning_icon {
    height: 32px;
    width: 32px;
}
.warning__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.warning__subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text_primary);
}
.warning__buttons {
    display: flex;
    gap: 16px;
    & > button {
        flex: 1;
    }
}
