/* styles.css */

/* Global Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    color: #000000;
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* App Container */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* App Header (App Bar) */
.app-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the title */
    background-color: #778899; /* greyColor from Flutter app */
    color: #FFFFFF;
    padding: 0 8px;
    height: 56px;
    min-height: 56px; /* Ensures the header is always at least 56px high */
    box-sizing: border-box;
}

.app-header h1 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    line-height: 56px; /* Vertically center text within the 56px height */
}

/* App Body */
.app-body {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

/* Input Container */
.input-container {
    display: flex;
    margin-bottom: 10px;
}

.input-container input {
    flex: 1;
    padding: 15px 8px;
    font-size: 16px;
    border: none;
    border-radius: 10px 0 0 10px;
    outline: none;
    background-color: #FFFFFF;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.input-container button {
    padding: 0 16px;
    background-color: transparent;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 24px;
    color: #000000;
}

.input-container button:disabled {
    color: rgba(0, 0, 0, 0.5);
    cursor: default;
}

/* Item List */
.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.item-list li {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 4px;
    margin-bottom: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.item-list li.checked .item-text {
    text-decoration: line-through;
    color: #808080;
}

.item-list .checkbox-container {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.item-list .checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #778899;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-list .checkbox-custom.checked {
    background-color: #778899;
    border-color: #778899;
}

.item-list .item-text {
    flex: 1;
    font-size: 16px;
}

.item-list .delete-button {
    background: none;
    border: none;
    color: rgb(36, 37, 42);
    cursor: pointer;
    font-size: 24px;
}

.item-list .delete-button:hover {
    color: rgb(36, 37, 42);
}

/* Invalid List Message */
#invalid-list-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: rgb(36, 37, 42);
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

#invalid-list-message p {
    font-size: 18px;
    margin: 0;
}
