@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f0f0f0;
    color: #333;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    font-weight: 700;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 120px;
    margin: 5px;
    border: 2px solid #3498db;
    border-radius: 10px;
    background-color: transparent;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover, .action-btn:focus {
    background-color: #3498db;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.action-btn i {
    font-size: 48px;
    margin-bottom: 10px;
}

#quick-actions {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#timer-section, #record-form, #history-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#timer-section:hover, #record-form:hover, #history-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#timer-display {
    font-size: 48px;
    text-align: center;
    margin: 20px 0;
    color: #2c3e50;
    font-weight: 700;
}

.timer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#timer-input {
    width: 60px;
    font-size: 18px;
    margin: 0 10px;
    padding: 5px;
    border: 1px solid #3498db;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

button:hover, button:focus {
    background-color: #2980b9;
    transform: scale(1.05);
}

button.continue {
    background-color: #e74c3c;
}

button.continue:hover, button.continue:focus {
    background-color: #c0392b;
}

.hidden {
    display: none;
}

form div {
    margin-bottom: 15px;
}

label {
    display: inline-block;
    margin-right: 10px;
    color: #2c3e50;
}

input[type="time"], textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="time"]:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    height: 100px;
    resize: vertical;
}

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

#history-list li {
    background-color: #ecf0f1;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#history-list li:hover {
    background-color: #e0e6e8;
}

#diaper-type-buttons, #diaper-amount-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.diaper-type-btn, .diaper-amount-btn {
    flex: 1;
    margin: 0 5px;
    background-color: #ecf0f1;
    color: #2c3e50;
}

.diaper-type-btn.selected, .diaper-amount-btn.selected {
    background-color: #3498db;
    color: white;
}

.timer-explanation {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

#notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#notification.hidden {
    opacity: 0;
}

#history-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.filter-btn {
    flex: 1;
    margin: 0 5px;
    background-color: #ecf0f1;
    color: #2c3e50;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .action-btn {
        width: 45%;
        height: 100px;
    }

    .action-btn i {
        font-size: 36px;
    }

    #timer-display {
        font-size: 36px;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.action-btn:active {
    animation: pulse 0.3s ease-in-out;
}
