/* style.css */
body {
    opacity: 0; /* Hide by default using opacity instead of display */
    transition: opacity 0.3s ease-in-out;
}

/* Fallback: Show body after 5 seconds if JavaScript hasn't loaded properly */
/* This prevents the page from staying hidden forever if app.js fails to load */
/* DISABLED to prevent conflicts with Cloudflare Pages deployment */
/*
body {
    animation: showAfterDelay 5s forwards;
}

@keyframes showAfterDelay {
    0% {
        opacity: 0;
    }
    95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
*/

/* Add any other base styles below */
/* ... */

/* Style for dangerous action buttons (e.g., Delete) */
.danger-btn {
    background-color: #dc3545; /* Bootstrap 5 danger color */
    color: white;
    border-color: #dc3545;
    padding: 5px 10px; /* Match other button padding if needed */
    border-radius: 4px; /* Match other button radius if needed */
    cursor: pointer;
    margin-left: 5px; /* Keep the margin added previously */
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.danger-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.danger-btn:disabled {
    background-color: #f8d7da; /* Lighter red when disabled */
    border-color: #f5c6cb;
    color: #721c24;
    cursor: not-allowed;
}

/* Style for informational banners */
.info-banner {
    background-color: #e7f3fe; /* Light blue background */
    color: #31708f;       /* Darker blue text */
    border: 1px solid #bce8f1;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Basic Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Maximum width */
    border-radius: 5px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style for checkboxes within the modal list */
#modal-line-item-list .line-item-checkbox-item {
    display: block; /* Each item on its own line */
    margin-bottom: 8px;
}
#modal-line-item-list label {
    margin-left: 5px;
}