/* Checklist Component Styles */
.checklist-component {
    margin: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.checklist-header h6 {
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.checklist-body {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checklist-item.completed {
    opacity: 0.6;
    background: rgba(240, 240, 240, 0.3);
}

.checklist-item.completed .item-icon {
    background: #e0fdf0;
    /* Light green */
    color: #10b981;
    /* Green */
}

.checklist-item .item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checklist-item .item-content {
    flex-grow: 1;
    min-width: 0;
    /* Text truncation fix */
}

.checklist-item .item-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checklist-item .item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checklist-item .item-check {
    margin-left: 0.5rem;
    color: #f59e0b;
    /* Amber/Yellow for pending */
    opacity: 1;
    transition: color 0.2s;
}

.checklist-item.completed .item-check {
    color: #10b981;
    /* Green for completed */
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Large Checklist Items (Full Page) */
.checklist-item.large {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
}

.checklist-item.large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.checklist-item.large .item-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-right: 1.25rem;
}

.checklist-item.large .item-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.checklist-item.large .item-desc {
    font-size: 0.9rem;
    white-space: normal;
}


.checklist-full-container {
    max-width: 100%;
}

/* Completed Large Item Override */
.checklist-item.large.completed {
    background: rgba(209, 250, 229, 0.4);
    /* emerald-100 with opacity */
    border-color: rgba(16, 185, 129, 0.3);
    /* emerald-500 */
}

.checklist-item.large.completed .item-icon {
    background: #d1fae5;
    /* emerald-100 */
    color: #059669;
    /* emerald-600 */
}

.checklist-item.large.completed .item-check {
    opacity: 1;
    color: #059669;
}