/* Reset default margins and ensure box-sizing for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Rubik', sans-serif;
    background: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    overflow-y: auto;
}
.container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 30px;
    background: #1c1c1c;
    border-radius: 12px;
}
h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(90deg, #ff2e63, #00f7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px auto;
    padding: 8px 12px;
    background: #2a2a2a;
    border-radius: 8px;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    justify-content: space-between; /* This will push the checkbox to the left and button to the right */
}
.check-item:hover {
    background: #333333;
}
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00f7ff;
    cursor: pointer;
}
.btn {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: #ff2e63;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 46, 99, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    min-width: 100px;
    margin-left: auto; /* This pushes the button to the right */
    flex-grow: 1; /* This allows the button to grow and take available space */
    text-align: center; /* This centers the text in the button */
}
.btn:hover {
    background: #ff4f7e;
    box-shadow: 0 0 15px rgba(255, 46, 99, 0.5);
}
.check-item .btn.done {
    background: #00f7ff;
}
.logout,
.back {
    background: #ff2e63;
    box-shadow: 0 0 10px rgba(255, 46, 99, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto; /* Centers the button */
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    min-width: 120px;
    text-align: center;
    display: block; /* Makes it take the full width available to it */
}
.logout:hover,
.back:hover {
    background: #ff4f7e;
    box-shadow: 0 0 15px rgba(255, 46, 99, 0.5);
}
@media (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 15px;
        margin: 0 10px;
    }
    h1 {
        font-size: 1.1rem;
    }
    .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    .check-item {
        padding: 6px 10px;
        gap: 8px;
        max-width: 100%;
    }
}
@media (min-width: 769px) {
    .check-item {
        max-width: 350px;
    }
    .btn {
        max-width: 300px;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}