body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom right, #FFFFE0, maroon);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
}

h1,
h2 {
    text-align: center;
    color: #5c0000;
    margin-bottom: 20px;
    font-family: 'Cooper', serif;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #7a0000;
}

input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #800000;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
}

input[type="text"]:focus,
input[type="date"]:focus {
    border-color: #a0522d;
    outline: none;
    box-shadow: 0 0 5px rgba(160, 82, 45, 0.2);
}

button {
    background-color: #800000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #5c0000;
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

li {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

li:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.95);
}

.expiring-soon {
    background-color: #f39c12 !important;
    color: white;
}

.expired {
    background-color: #e74c3c !important;
    color: white;
}

.delete-button {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #a02d21;
}

.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}