* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle, #222 5%, #111 50%);
    color: white;
    margin: 0;
}

body.login-mode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.info-text-container {
    text-align: center;
    background: radial-gradient(circle, #222 10%, #111 80%);
    padding: 2px;
    border-radius: 16px;
    outline: 2px solid #333;
    box-shadow: 0 0 30px rgba(0, 0, 0);
    margin-bottom: 50px;
    transition: all 0.25s ease;
    color: rgb(240, 240, 240);
}

.info-text-container:hover .welcomeText {
    transform: scale(1.25) translateY(-10px);
    text-shadow: 0 0px 10px rgba(225, 225, 225, 1);
}

.info-text-container:hover p {
    transform: scale(1.25);
    text-shadow: 0 0px 10px rgba(225, 225, 225, 1);
}

.welcomeText {
    transform: scale(1) translateY(-10px);
    transition: all 0.25s ease;
}

.large-info {
    font-size: 16px;
    margin-top: -25px;
    transition: all 0.25s ease;
}

#loginScreen {
    text-align: center;
    background: radial-gradient(circle, #222 10%, #111 80%);
    width: 450px;
    height: 400px;
    padding: 20px;
    border-radius: 8px;
    outline: 2px solid black;
    text-shadow: 0 5px 15px black;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#auth input {
    display: block;
    background: linear-gradient(180deg, #222, #111);
    outline: 2px solid #000;
    border: none;
    border-radius: 4px;
    width: 100%;
    padding: 15px;
    margin: 20px 0px;
    color: white;
    box-shadow: 0 0 15px rgb(0, 0, 0);
    transition: all 0.25s ease;
}

#auth input:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255);
    transition: all 0.1s ease;
}

#auth input:focus {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255);
    transition: all 0.1s ease;
}

#auth input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

#loginBtn {
    display: block;
    background: linear-gradient(180deg, #222, #111);
    outline: 2px solid #000;
    border: none;
    border-radius: 4px;
    width: 75%;
    padding: 10px;
    margin: auto;
    font-size: large;
    color: white;
    box-shadow: 0 0 15px rgb(0, 0, 0);
    transition: all 0.25s ease;
}

#loginBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255);
    transition: all 0.1s ease;
}

#loginBtn:focus {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255);
    transition: all 0.1s ease;
}

#appScreen {
    margin: 25px;
    padding: 15px;
    border: 4px #333 solid;
    border-radius: 8px;
    background: linear-gradient(180deg, #222, #111);
}

.summary {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 4px #333 solid;
    color: #fff;
    transition: all 0.25s ease
}

.gray {
    background: #3e3f3e;
}

.gray:hover {
    box-shadow: 0px 0px 50px #3e3f3e;
}

.green {
    background: #14753d;
}

.green:hover {
    box-shadow: 0px 0px 50px #14753d;
}

.yellow {
    background: #bd9b16;
    color: #000;
}

.yellow:hover {
    box-shadow: 0px 0px 50px #bd9b16;
}

.red {
    background: #8d251a;
}

.red:hover {
    box-shadow: 0px 0px 50px #8d251a;
}

button {
    padding: 8px 12px;
    cursor: pointer;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-header h2 {
    margin: 0;
}

.calendar-button {
    font-size: 18px;
    background: linear-gradient(180deg, #222, #111);
    outline: 2px solid #000;
    border: none;
    border-radius: 4px;
    color: white;
    box-shadow: 0 0 15px rgb(0, 0, 0);
    transition: all 0.25s ease;
}

.calendar-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255);
    transition: all 0.1s ease;
}

.calendar-button:focus {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255);
    transition: all 0.1s ease;
}

.month-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.month-center button {
    margin-top: 4px;
    font-size: 12px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 6px;
    font-weight: bold;
    text-align: center;
}

.day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.day.empty:hover {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.day.today {
    border: 2px solid #3498db;
    background: #2f2f2f;
}

.day {
    background: #222;
    border: 2px solid #444;
    border-radius: 6px;
    padding: 10px;
    min-height: 70px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.day:hover {
    transform: scale(1.05);
    box-shadow: 0 0px 15px #fff;
}

.day strong {
    display: block;
}

.amount {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-top: 4px;
}

.food {
    font-size: 16px;
    margin-top: 4px;
    color: #ddd;
    word-break: break-word;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
}

.modal-content input {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
}