/* Remove Materialize's default border */
.collection {
    border: none;
    background: transparent;
    margin-top: 20px;
}

/* Individual boxes */
.collection .collection-item {
    background: #fff;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 16px 18px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Hover effect */
.collection .collection-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(138, 21, 56, 0.25);
    border-color: #8a1538 !important;
}

/* Icon spacing */
.collection .collection-item .material-icons {
    vertical-align: middle;
    margin-right: 8px;
}

/* Nested lists */
.collection .collection-item ol,
.collection .collection-item ul {
    margin-top: 12px;
    margin-left: 24px;
}

/* Make nested list items cleaner */
.collection .collection-item ol li,
.collection .collection-item ul li {
    padding: 3px 0;
}

.checklist-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,.3);

    /* Hidden */
    transform: translateX(100%);
    transition: transform .3s ease;

    padding: 24px;
    box-sizing: border-box;
}

.checklist-panel.open {
    transform: translateX(0);
}

#panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    z-index: 1000;
}

#panel-overlay.show {
    display: block;
}

.close-panel {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color .2s ease;
    user-select: none;
}

.close-panel:hover {
    color: #8a1538;
}

#tabs-swipe-demo {
    width: 260px;
}

@media only screen and (max-width: 600px) {
    .checklist-panel {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .checklist-panel .collection-item {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        line-height: 1.5;
    }

    .checklist-panel .collection-item .material-icons {
        display: inline-block !important;
        font-family: 'Material Icons' !important;
        font-size: 18px !important;
        flex-shrink: 0;
        margin-right: 8px;
    }

    .checklist-panel .collection-item .left {
        float: none !important;
        margin-right: 8px;
    }

    .checklist-panel .tabs .tab a {
        font-size: 14px;
        padding: 0 10px;
    }
}