:root {
    --primary-color: #ffffff;              /* Білий текст */
    --secondary-color: #1f2a38;            /* Темний фон блоків */
    --secondary-text: #a0b0c0;             /* Світло-сірий з блакитним */
    --helper-text: #7f8fa0;                /* Допоміжний текст */
    --danger-color: #ff4c4c;               /* Червоний для помилок */
    --background-color: linear-gradient(180deg, #2c3e50, #5dade2); /* Градієнт сірого та темного блакитного */
    --item-background: #FFFFFF12;            /* Темно-сірий фон карток */
    --highlight-color: #5dade2;            /* Яскравий блакитний для виділення */
    --highlight-gradient: linear-gradient(135deg, #5dade2, #3498db); /* Градієнт для акцентів */
    --divider-color: #3a4a5a;              /* Лінії та роздільники */
    --hover-background: #34495e;           /* Темний фон при ховері */
    --hover-background-opaque: rgba(52, 73, 94, 0.7); /* Прозорий ховер */
    --hover-danger: #ff6b6b;               /* Інтенсивний червоний при ховері на помилку */
    --footer-color: #1c2531;               /* Темний фон футера */
    --msg-color: #4a657d;                  /* Повідомлення, сірий з блакитним */
    --pop-up-background: #2c3e50;          /* Фон спливаючих вікон */
    --button-bg: linear-gradient(135deg, #2980b9, #1f3f5a);       /* Градієнт кнопки */
    --button-hover: linear-gradient(135deg, #3498db, #2c5a80);    /* Градієнт кнопки при ховері */
    --start-color: #2980b9;               /* Початок градієнта кнопки */
    --start-gradient: #3498db;            /* Альтернативний градієнт для акценту */
    --stop-color: #1f3f5a;                /* Кінець градієнта кнопки */
    --stop-gradient: #2c5a80;             /* Кінець градієнта при ховері */
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--primary-color);
    background: var(--background-color);
    font-family: Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
*, *::before, *::after {
    box-sizing: inherit;
}
.header, .footer {
    display: flex;
    background: var(--footer-color);
    align-items: center;
    justify-content: space-between;
    padding-inline: 20px;
}
.header .button{
    width: unset !important;
}
a {
    color: inherit;
    text-decoration: none;
}
.container{
    display: grid;
    justify-items: center;
    background-color: var(--item-background);
    border-radius: 20px;
    min-width: 400px;
    width: fit-content;
    padding: 20px;
    margin: auto;
    gap: 2rem;
}
.login{
    height: 100vh;
    display: grid;
    align-items: center;
    align-content: center;
    justify-items: center;
}
.login form{
    display: grid;
    gap: 2rem;
    width: 100%;
}
input, textarea, .input{
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: var(--item-background);
    width: 100%;
    color: var(--primary-color);
}
input::placeholder {
  color: var(--secondary-text);
}
input::placeholder { var(--secondary-text); }
input::-webkit-input-placeholder { var(--secondary-text); } /* Chrome, Safari */
input:-ms-input-placeholder { var(--secondary-text); }     /* IE 10+ */
input::-ms-input-placeholder { var(--secondary-text); }    /* Edge */
textarea {
    overflow: auto;
}
/* Chrome, Safari, Opera */
textarea::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
/* Firefox */
textarea {
    scrollbar-width: none;
}
/* IE 10+ */
textarea {
    -ms-overflow-style: none;
}
.button{
    all: unset;
    box-sizing: border-box;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 13.3px;
    background: var(--item-background);
    backdrop-filter: blur(75px);
    -webkit-backdrop-filter: blur(75px);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}
.button img{
    max-height: 20px;
}
.button:hover{
    background: var(--button-hover);
}
.button.dangerous:hover{
    background: var(--danger-color);
}
.button-with-background{
    width: 100%;
    background: var(--highlight-gradient);
}
.content{
    flex: 1;
    padding: 15px;
    max-width: 1200px;
    margin: auto;
}
.total{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding-block: 25px;
    gap: 3rem;
}
.total .title{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    min-width: 150px;
}
.total .title p{
    margin-block: 10px 0;
}
.emoji{
    font-size: x-large;
}
.total h2{
    margin-bottom: 0;
}
.help{
    font-size: x-small;
}
.item{
    background: var(--item-background);
    border-radius: 15px;
    padding: 10px 20px;
    width: 100%;
    margin-block: 10px;
}
.account{
    display: flex;
    justify-content: space-between;
}
.stat{
    display: flex;
    gap: 10px;
}
.stat .colum{
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 110px;
    word-wrap: break-word;
}
.stat .colum p{
    width: 110px;
    margin-block: 0;
    text-align: center;
    overflow-wrap: break-word;
}
.add-form{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: end;
    gap: 1rem;
    margin-block: 20px;
}
.add-form div{
    gap: 10px;
    display: grid;
}
.order-form{
    display: grid;
    gap: 1rem;
    justify-items: center;
}
.message{
    display: grid;
    grid-template-columns: 1fr 5fr 1fr 1fr;
    align-items: center;
    gap: 10px;
    cursor: grab;
}
.order-form .button{
    max-width: 300px;
}
#sortable {
    list-style: none;
    padding: 0;
}
.drag-handle {
    cursor: grab;
    font-weight: bold;
    margin-right: 10px;
}
.delete{
    text-align: center;
    cursor: pointer;
    font-size: larger;
}