/* General styling for shortcode output */
.checklist-container {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0 auto;
    max-width: 1200px;
    padding: 5px;
}

/* Boxes for Open Checklists and Checklist Templates */
.checklist-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.checklist-box:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Headings inside boxes */
.checklist-box h2 {
    font-size: 20px;
    color: #444;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* Open Checklists and Templates side by side on desktop */
@media (min-width: 768px) {
    .checklist-container {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .checklist-box {
        width: 48%;
    }
}

/* Mobile-friendly layout */
@media (max-width: 767px) {
    .checklist-container {
        display: block;
    }

    .checklist-box {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* List items inside boxes */
.checklist-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist-box ul li {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checklist-box ul li:hover {
    background: #f0f0f0;
}

/* Buttons inside lists */

/* Unlock button (aligned right, distinct color) */
.checklist-box ul li .button.button-unlock {
    background: #dc3545 !important;
    color: #fff !important;
}

.checklist-box ul li .button.button-unlock:hover {
    background: #c82333 !important;
}

.checklist-box ul li .button {
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background: #0073aa;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.checklist-box ul li .button:hover {
    background: #005f8d;
}

/* Notice for open instances */
.checklist-box ul li .notice {
    font-size: 14px;
    color: #888;
}

/* Miscellaneous spacing */
.checklist-box ul li span {
    margin-right: 10px;
    font-size: 14px;
    color: #555;
}

.checklist-box ul li:last-child {
    margin-bottom: 0;
}

/* General styling for the checklist being edited */
.checklist-currently-editing {
    background: #fffbea;
    border: 2px solid #ffcc00;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(255, 204, 0, 0.3);
}

.checklist-currently-editing h2 {
    color: #d19a00;
}

.checklist-currently-editing p {
    font-size: 14px;
    color: #8a6d00;
    margin-bottom: 15px;
}

/* Additional styling for the checklist items */
.checklist-item {
    margin-bottom: 15px;
}

.checklist-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.checklist-item input[type="text"],
.checklist-item textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.checklist-item input[type="checkbox"],
.checklist-item input[type="radio"] {
    margin-right: 10px;
}

.checklist-item textarea {
    height: 80px;
    resize: vertical;
}

/* Buttons inside the checklist */
.checklist-currently-editing .button {
    margin-top: 15px;
}

/* General button styling */
.button {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #0073aa; /* Default WordPress blue */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Hover effect for buttons */
.button:hover {
    background: #005f8d; /* Darker blue on hover */
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
}

/* Primary buttons (Save Checklist) */
.button-primary {
    background: #28a745; /* Green */
    color: #fff;
    border: none;
}

.button-primary:hover {
    background: #218838; /* Darker green on hover */
}

/* Submit button (aligned right, distinct color) */
.button-submit {
    background: #dc3545; /* Red to signify final action */
    color: #fff;
    margin-left: auto; /* Push the button to the right */
    display: inline-block;
    text-align: right;
}

.button-submit:hover {
    background: #c82333; /* Darker red on hover */
}

/* Disabled buttons */
.button[disabled],
.button:disabled {
    background: #d6d6d6; /* Light gray */
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* Container for aligning buttons */
.button-container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 15px;
}

/* Section styling */
.checklist-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.checklist-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.site-content {
    padding: 10px !important;
}

.checklist-note {
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
    padding: 8px;
    border-left: 4px solid #0073aa;
    display: block;
    margin-bottom: 10px;
}
