:root {
    --bg-color: #f0f8ff; /* AliceBlue */
    --primary-color: #00a8cc; /* A nice cyan/teal */
    --card-bg: #ffffff;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #007bff; /* A cool, positive blue for add */
    --danger-color: #ffc107; /* A bright yellow for "thaw" */
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#dashboard {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    text-align: center;
}

.dashboard-stat h2 {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.dashboard-stat p {
    margin: 5px 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}


#add-item-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

#item-name, #item-price, #cooling-period {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

#cooling-period {
    grid-column: 1 / 2;
}

#add-item-btn {
    grid-column: 2 / 3;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

#add-item-btn:hover {
    background-color: #0056b3;
}


#cooler-list {
    list-style-type: none;
    padding: 0;
}

.cooler-item {
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.item-info h3 {
    margin: 0 0 5px;
    font-size: 1.25rem;
    font-weight: 700;
}

.item-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
    font-weight: bold;
}

.timer-container {
    margin-top: 15px;
}

.timer {
    font-size: 0.9rem;
    color: #777;
}

.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 10px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 1s linear;
}

.frost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: opacity 1s ease-out;
    pointer-events: none; /* Allows clicking through */
}

.thawed-buttons {
    margin-top: 15px;
    text-align: center;
}

.thawed-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin: 0 10px;
    cursor: pointer;
}

.thawed-buttons .yes-btn {
    background-color: #28a745;
    color: white;
}

.thawed-buttons .no-btn {
    background-color: var(--danger-color);
    color: #333;
}


#empty-state {
    text-align: center;
    padding: 40px;
    color: #777;
}

#clear-completed-btn {
    background-color: #dc3545;
    color: white;
}
